@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNetworkInterfacePermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNetworkInterfacePermissionRequest>
Contains the parameters for CreateNetworkInterfacePermission.
NOOP| Constructor and Description | 
|---|
| CreateNetworkInterfacePermissionRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateNetworkInterfacePermissionRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| String | getAwsAccountId()
 The AWS account ID. | 
| String | getAwsService()
 The AWS service. | 
| Request<CreateNetworkInterfacePermissionRequest> | getDryRunRequest()This method is intended for internal use only. | 
| String | getNetworkInterfaceId()
 The ID of the network interface. | 
| String | getPermission()
 The type of permission to grant. | 
| int | hashCode() | 
| void | setAwsAccountId(String awsAccountId)
 The AWS account ID. | 
| void | setAwsService(String awsService)
 The AWS service. | 
| void | setNetworkInterfaceId(String networkInterfaceId)
 The ID of the network interface. | 
| void | setPermission(InterfacePermissionType permission)
 The type of permission to grant. | 
| void | setPermission(String permission)
 The type of permission to grant. | 
| String | toString()Returns a string representation of this object. | 
| CreateNetworkInterfacePermissionRequest | withAwsAccountId(String awsAccountId)
 The AWS account ID. | 
| CreateNetworkInterfacePermissionRequest | withAwsService(String awsService)
 The AWS service. | 
| CreateNetworkInterfacePermissionRequest | withNetworkInterfaceId(String networkInterfaceId)
 The ID of the network interface. | 
| CreateNetworkInterfacePermissionRequest | withPermission(InterfacePermissionType permission)
 The type of permission to grant. | 
| CreateNetworkInterfacePermissionRequest | withPermission(String permission)
 The type of permission to grant. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateNetworkInterfacePermissionRequest()
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId - The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public CreateNetworkInterfacePermissionRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId - The ID of the network interface.public void setAwsAccountId(String awsAccountId)
The AWS account ID.
awsAccountId - The AWS account ID.public String getAwsAccountId()
The AWS account ID.
public CreateNetworkInterfacePermissionRequest withAwsAccountId(String awsAccountId)
The AWS account ID.
awsAccountId - The AWS account ID.public void setAwsService(String awsService)
The AWS service. Currently not supported.
awsService - The AWS service. Currently not supported.public String getAwsService()
The AWS service. Currently not supported.
public CreateNetworkInterfacePermissionRequest withAwsService(String awsService)
The AWS service. Currently not supported.
awsService - The AWS service. Currently not supported.public void setPermission(String permission)
The type of permission to grant.
permission - The type of permission to grant.InterfacePermissionTypepublic String getPermission()
The type of permission to grant.
InterfacePermissionTypepublic CreateNetworkInterfacePermissionRequest withPermission(String permission)
The type of permission to grant.
permission - The type of permission to grant.InterfacePermissionTypepublic void setPermission(InterfacePermissionType permission)
The type of permission to grant.
permission - The type of permission to grant.InterfacePermissionTypepublic CreateNetworkInterfacePermissionRequest withPermission(InterfacePermissionType permission)
The type of permission to grant.
permission - The type of permission to grant.InterfacePermissionTypepublic Request<CreateNetworkInterfacePermissionRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateNetworkInterfacePermissionRequest>public String toString()
toString in class ObjectObject.toString()public CreateNetworkInterfacePermissionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()