@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizeSecurityGroupIngressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AuthorizeSecurityGroupIngressRequest>
NOOP
Constructor and Description |
---|
AuthorizeSecurityGroupIngressRequest()
Default constructor for AuthorizeSecurityGroupIngressRequest object.
|
AuthorizeSecurityGroupIngressRequest(String groupName,
List<IpPermission> ipPermissions)
Constructs a new AuthorizeSecurityGroupIngressRequest object.
|
Modifier and Type | Method and Description |
---|---|
AuthorizeSecurityGroupIngressRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCidrIp()
The IPv4 address range, in CIDR format.
|
Request<AuthorizeSecurityGroupIngressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getFromPort()
If the protocol is TCP or UDP, this is the start of the port range.
|
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
[Default VPC] The name of the security group.
|
List<IpPermission> |
getIpPermissions()
The permissions for the security group rules.
|
String |
getIpProtocol()
|
String |
getSourceSecurityGroupName()
[Default VPC] The name of the source security group.
|
String |
getSourceSecurityGroupOwnerId()
The Amazon Web Services account ID for the source security group, if the source security group is in a different
account.
|
List<TagSpecification> |
getTagSpecifications()
The tags applied to the security group rule.
|
Integer |
getToPort()
If the protocol is TCP or UDP, this is the end of the port range.
|
int |
hashCode() |
void |
setCidrIp(String cidrIp)
The IPv4 address range, in CIDR format.
|
void |
setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
[Default VPC] The name of the security group.
|
void |
setIpPermissions(Collection<IpPermission> ipPermissions)
The permissions for the security group rules.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The Amazon Web Services account ID for the source security group, if the source security group is in a different
account.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags applied to the security group rule.
|
void |
setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
String |
toString()
Returns a string representation of this object.
|
AuthorizeSecurityGroupIngressRequest |
withCidrIp(String cidrIp)
The IPv4 address range, in CIDR format.
|
AuthorizeSecurityGroupIngressRequest |
withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range.
|
AuthorizeSecurityGroupIngressRequest |
withGroupId(String groupId)
The ID of the security group.
|
AuthorizeSecurityGroupIngressRequest |
withGroupName(String groupName)
[Default VPC] The name of the security group.
|
AuthorizeSecurityGroupIngressRequest |
withIpPermissions(Collection<IpPermission> ipPermissions)
The permissions for the security group rules.
|
AuthorizeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
The permissions for the security group rules.
|
AuthorizeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The Amazon Web Services account ID for the source security group, if the source security group is in a different
account.
|
AuthorizeSecurityGroupIngressRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags applied to the security group rule.
|
AuthorizeSecurityGroupIngressRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags applied to the security group rule.
|
AuthorizeSecurityGroupIngressRequest |
withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range.
|
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, withSdkRequestTimeout
public AuthorizeSecurityGroupIngressRequest()
public AuthorizeSecurityGroupIngressRequest(String groupName, List<IpPermission> ipPermissions)
groupName
- [Default VPC] The name of the security group. For security groups for a default VPC you can specify either
the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the
ID of the security group.ipPermissions
- The permissions for the security group rules.public void setCidrIp(String cidrIp)
The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
cidrIp
- The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public String getCidrIp()
The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withCidrIp(String cidrIp)
The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
cidrIp
- The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public void setFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public Integer getFromPort()
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withFromPort(Integer fromPort)
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public void setGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public String getGroupId()
The ID of the security group.
public AuthorizeSecurityGroupIngressRequest withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setGroupName(String groupName)
[Default VPC] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group.
groupName
- [Default VPC] The name of the security group. For security groups for a default VPC you can specify either
the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the
ID of the security group.public String getGroupName()
[Default VPC] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group.
public AuthorizeSecurityGroupIngressRequest withGroupName(String groupName)
[Default VPC] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group.
groupName
- [Default VPC] The name of the security group. For security groups for a default VPC you can specify either
the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the
ID of the security group.public List<IpPermission> getIpPermissions()
The permissions for the security group rules.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
The permissions for the security group rules.
ipPermissions
- The permissions for the security group rules.public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
The permissions for the security group rules.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissions(java.util.Collection)
or withIpPermissions(java.util.Collection)
if you want
to override the existing values.
ipPermissions
- The permissions for the security group rules.public AuthorizeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
The permissions for the security group rules.
ipPermissions
- The permissions for the security group rules.public void setIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
sourceSecurityGroupName
- [Default VPC] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
public String getSourceSecurityGroupName()
[Default VPC] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
sourceSecurityGroupName
- [Default VPC] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The Amazon Web Services account ID for the source security group, if the source security group is in a different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
sourceSecurityGroupOwnerId
- The Amazon Web Services account ID for the source security group, if the source security group is in a
different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
public String getSourceSecurityGroupOwnerId()
The Amazon Web Services account ID for the source security group, if the source security group is in a different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The Amazon Web Services account ID for the source security group, if the source security group is in a different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
sourceSecurityGroupOwnerId
- The Amazon Web Services account ID for the source security group, if the source security group is in a
different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
public void setToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1
(all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public Integer getToPort()
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withToPort(Integer toPort)
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1
(all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
public List<TagSpecification> getTagSpecifications()
The tags applied to the security group rule.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags applied to the security group rule.
tagSpecifications
- The tags applied to the security group rule.public AuthorizeSecurityGroupIngressRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags applied to the security group rule.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags applied to the security group rule.public AuthorizeSecurityGroupIngressRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags applied to the security group rule.
tagSpecifications
- The tags applied to the security group rule.public Request<AuthorizeSecurityGroupIngressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AuthorizeSecurityGroupIngressRequest>
public String toString()
toString
in class Object
Object.toString()
public AuthorizeSecurityGroupIngressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()