Class InstanceSecondaryInterfaceSpecificationRequest
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceSecondaryInterfaceSpecificationRequest
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>
@Generated("software.amazon.awssdk:codegen") public final class InstanceSecondaryInterfaceSpecificationRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>
Describes a secondary interface specification for launching an instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceSecondaryInterfaceSpecificationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceSecondaryInterfaceSpecificationRequest.Builderbuilder()BooleandeleteOnTermination()Indicates whether the secondary interface is deleted when the instance is terminated.IntegerdeviceIndex()The device index for the secondary interface attachment.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasPrivateIpAddresses()For responses, this returns true if the service returned a value for the PrivateIpAddresses property.SecondaryInterfaceTypeinterfaceType()The type of secondary interface.StringinterfaceTypeAsString()The type of secondary interface.IntegernetworkCardIndex()The index of the network card.IntegerprivateIpAddressCount()The number of private IPv4 addresses to assign to the secondary interface.List<InstanceSecondaryInterfacePrivateIpAddressRequest>privateIpAddresses()The private IPv4 addresses to assign to the secondary interface.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()StringsecondarySubnetId()The ID of the secondary subnet.static Class<? extends InstanceSecondaryInterfaceSpecificationRequest.Builder>serializableBuilderClass()InstanceSecondaryInterfaceSpecificationRequest.BuildertoBuilder()StringtoString()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
-
deleteOnTermination
public final Boolean deleteOnTermination()
Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.- Returns:
- Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.
-
deviceIndex
public final Integer deviceIndex()
The device index for the secondary interface attachment.
- Returns:
- The device index for the secondary interface attachment.
-
hasPrivateIpAddresses
public final boolean hasPrivateIpAddresses()
For responses, this returns true if the service returned a value for the PrivateIpAddresses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
privateIpAddresses
public final List<InstanceSecondaryInterfacePrivateIpAddressRequest> privateIpAddresses()
The private IPv4 addresses to assign to the secondary interface.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPrivateIpAddresses()method.- Returns:
- The private IPv4 addresses to assign to the secondary interface.
-
privateIpAddressCount
public final Integer privateIpAddressCount()
The number of private IPv4 addresses to assign to the secondary interface.
- Returns:
- The number of private IPv4 addresses to assign to the secondary interface.
-
secondarySubnetId
public final String secondarySubnetId()
The ID of the secondary subnet.
- Returns:
- The ID of the secondary subnet.
-
interfaceType
public final SecondaryInterfaceType interfaceType()
The type of secondary interface.
If the service returns an enum value that is not available in the current SDK version,
interfaceTypewill returnSecondaryInterfaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominterfaceTypeAsString().- Returns:
- The type of secondary interface.
- See Also:
SecondaryInterfaceType
-
interfaceTypeAsString
public final String interfaceTypeAsString()
The type of secondary interface.
If the service returns an enum value that is not available in the current SDK version,
interfaceTypewill returnSecondaryInterfaceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominterfaceTypeAsString().- Returns:
- The type of secondary interface.
- See Also:
SecondaryInterfaceType
-
networkCardIndex
public final Integer networkCardIndex()
The index of the network card. The network card must support secondary interfaces.
- Returns:
- The index of the network card. The network card must support secondary interfaces.
-
toBuilder
public InstanceSecondaryInterfaceSpecificationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceSecondaryInterfaceSpecificationRequest.Builder,InstanceSecondaryInterfaceSpecificationRequest>
-
builder
public static InstanceSecondaryInterfaceSpecificationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceSecondaryInterfaceSpecificationRequest.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-