@Generated(value="software.amazon.awssdk:codegen") public class StaleIpPermission extends Object implements ToCopyableBuilder<StaleIpPermission.Builder,StaleIpPermission>
Describes a stale rule in a security group.
Modifier and Type | Class and Description |
---|---|
static interface |
StaleIpPermission.Builder |
Modifier and Type | Method and Description |
---|---|
static StaleIpPermission.Builder |
builder() |
boolean |
equals(Object obj) |
Integer |
fromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP type number.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
ipProtocol()
|
List<String> |
ipRanges()
One or more IP ranges.
|
List<String> |
prefixListIds()
One or more prefix list IDs for an AWS service.
|
static Class<? extends StaleIpPermission.Builder> |
serializableBuilderClass() |
StaleIpPermission.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
Integer |
toPort()
The end of the port range for the TCP and UDP protocols, or an ICMP type number.
|
String |
toString() |
List<UserIdGroupPair> |
userIdGroupPairs()
One or more security group pairs.
|
copy
public Integer fromPort()
The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1
indicates all ICMP types.
-1
indicates all ICMP types.public String ipProtocol()
The IP protocol name (for tcp
, udp
, and icmp
) or number (see Protocol Numbers).
tcp
, udp
, and icmp
) or number (see Protocol Numbers).public List<String> ipRanges()
One or more IP ranges. Not applicable for stale security group rules.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> prefixListIds()
One or more prefix list IDs for an AWS service. Not applicable for stale security group rules.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer toPort()
The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1
indicates all ICMP types.
-1
indicates all ICMP types.public List<UserIdGroupPair> userIdGroupPairs()
One or more security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public StaleIpPermission.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StaleIpPermission.Builder,StaleIpPermission>
public static StaleIpPermission.Builder builder()
public static Class<? extends StaleIpPermission.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.