Class AwsEc2SecurityGroupDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsEc2SecurityGroupDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsEc2SecurityGroupDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>
Details about an Amazon EC2 security group.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsEc2SecurityGroupDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsEc2SecurityGroupDetails.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupId()The ID of the security group.StringgroupName()The name of the security group.inthashCode()booleanhasIpPermissions()For responses, this returns true if the service returned a value for the IpPermissions property.booleanhasIpPermissionsEgress()For responses, this returns true if the service returned a value for the IpPermissionsEgress property.List<AwsEc2SecurityGroupIpPermission>ipPermissions()The inbound rules associated with the security group.List<AwsEc2SecurityGroupIpPermission>ipPermissionsEgress()[VPC only] The outbound rules associated with the security group.StringownerId()The Amazon Web Services account ID of the owner of the security group.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsEc2SecurityGroupDetails.Builder>serializableBuilderClass()AwsEc2SecurityGroupDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcId()[VPC only] The ID of the VPC for the security group.-
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
-
groupName
public final String groupName()
The name of the security group.
- Returns:
- The name of the security group.
-
groupId
public final String groupId()
The ID of the security group.
- Returns:
- The ID of the security group.
-
ownerId
public final String ownerId()
The Amazon Web Services account ID of the owner of the security group.
- Returns:
- The Amazon Web Services account ID of the owner of the security group.
-
vpcId
public final String vpcId()
[VPC only] The ID of the VPC for the security group.
- Returns:
- [VPC only] The ID of the VPC for the security group.
-
hasIpPermissions
public final boolean hasIpPermissions()
For responses, this returns true if the service returned a value for the IpPermissions 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.
-
ipPermissions
public final List<AwsEc2SecurityGroupIpPermission> ipPermissions()
The inbound rules associated with the security group.
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
hasIpPermissions()method.- Returns:
- The inbound rules associated with the security group.
-
hasIpPermissionsEgress
public final boolean hasIpPermissionsEgress()
For responses, this returns true if the service returned a value for the IpPermissionsEgress 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.
-
ipPermissionsEgress
public final List<AwsEc2SecurityGroupIpPermission> ipPermissionsEgress()
[VPC only] The outbound rules associated with the security group.
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
hasIpPermissionsEgress()method.- Returns:
- [VPC only] The outbound rules associated with the security group.
-
toBuilder
public AwsEc2SecurityGroupDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEc2SecurityGroupDetails.Builder,AwsEc2SecurityGroupDetails>
-
builder
public static AwsEc2SecurityGroupDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsEc2SecurityGroupDetails.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
-
-