Class NetworkInterfacePermission
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.NetworkInterfacePermission
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<NetworkInterfacePermission.Builder,NetworkInterfacePermission>
@Generated("software.amazon.awssdk:codegen") public final class NetworkInterfacePermission extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NetworkInterfacePermission.Builder,NetworkInterfacePermission>
Describes a permission for a network interface.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NetworkInterfacePermission.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
awsAccountId()
The Amazon Web Services account ID.String
awsService()
The Amazon Web Services service.static NetworkInterfacePermission.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
networkInterfaceId()
The ID of the network interface.String
networkInterfacePermissionId()
The ID of the network interface permission.InterfacePermissionType
permission()
The type of permission.String
permissionAsString()
The type of permission.NetworkInterfacePermissionState
permissionState()
Information about the state of the permission.List<SdkField<?>>
sdkFields()
static Class<? extends NetworkInterfacePermission.Builder>
serializableBuilderClass()
NetworkInterfacePermission.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
networkInterfacePermissionId
public final String networkInterfacePermissionId()
The ID of the network interface permission.
- Returns:
- The ID of the network interface permission.
-
networkInterfaceId
public final String networkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
awsAccountId
public final String awsAccountId()
The Amazon Web Services account ID.
- Returns:
- The Amazon Web Services account ID.
-
awsService
public final String awsService()
The Amazon Web Services service.
- Returns:
- The Amazon Web Services service.
-
permission
public final InterfacePermissionType permission()
The type of permission.
If the service returns an enum value that is not available in the current SDK version,
permission
will returnInterfacePermissionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompermissionAsString()
.- Returns:
- The type of permission.
- See Also:
InterfacePermissionType
-
permissionAsString
public final String permissionAsString()
The type of permission.
If the service returns an enum value that is not available in the current SDK version,
permission
will returnInterfacePermissionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompermissionAsString()
.- Returns:
- The type of permission.
- See Also:
InterfacePermissionType
-
permissionState
public final NetworkInterfacePermissionState permissionState()
Information about the state of the permission.
- Returns:
- Information about the state of the permission.
-
toBuilder
public NetworkInterfacePermission.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<NetworkInterfacePermission.Builder,NetworkInterfacePermission>
-
builder
public static NetworkInterfacePermission.Builder builder()
-
serializableBuilderClass
public static Class<? extends NetworkInterfacePermission.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-