@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() |
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 sets of IP permissions.
|
String |
getIpProtocol()
|
String |
getSourceSecurityGroupName()
[Default VPC] The name of the source security group.
|
String |
getSourceSecurityGroupOwnerId()
[Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security group
is in a different account.
|
List<TagSpecification> |
getTagSpecifications()
[VPC Only] 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 sets of IP permissions.
|
void |
setIpProtocol(String ipProtocol)
|
void |
setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
void |
setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[Nondefault VPC] 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)
[VPC Only] 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 sets of IP permissions.
|
AuthorizeSecurityGroupIngressRequest |
withIpPermissions(IpPermission... ipPermissions)
The sets of IP permissions.
|
AuthorizeSecurityGroupIngressRequest |
withIpProtocol(String ipProtocol)
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group.
|
AuthorizeSecurityGroupIngressRequest |
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[Nondefault VPC] 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)
[VPC Only] The tags applied to the security group rule.
|
AuthorizeSecurityGroupIngressRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
[VPC Only] 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, copyBaseTo, 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. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.ipPermissions
- The sets of IP permissions.public void setCidrIp(String cidrIp)
The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
cidrIp
- The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security
group. To specify an IPv6 address range, use a set of IP permissions.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public String getCidrIp()
The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public AuthorizeSecurityGroupIngressRequest withCidrIp(String cidrIp)
The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
cidrIp
- The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security
group. To specify an IPv6 address range, use a set of IP permissions.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
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 type number. A value of -1 indicates all ICMP types. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
type number. A value of -1 indicates all ICMP types. If you specify all ICMP types, you must specify all
ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
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 type number. A value of -1 indicates all ICMP types. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
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 type number. A value of -1 indicates all ICMP types. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
fromPort
- If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the
type number. A value of -1 indicates all ICMP types. If you specify all ICMP types, you must specify all
ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public void setGroupId(String groupId)
The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupId
- The ID of the security group. You must specify either the security group ID or the security group name in
the request. For security groups in a nondefault VPC, you must specify the security group ID.public String getGroupId()
The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
public AuthorizeSecurityGroupIngressRequest withGroupId(String groupId)
The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupId
- The ID of the security group. You must specify either the security group ID or the security group name in
the request. For security groups in a nondefault VPC, you must specify the security group ID.public void setGroupName(String groupName)
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupName
- [Default VPC] The name of the security group. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.public String getGroupName()
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
public AuthorizeSecurityGroupIngressRequest withGroupName(String groupName)
[Default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
groupName
- [Default VPC] The name of the security group. You must specify either the security group ID or the
security group name in the request. For security groups in a nondefault VPC, you must specify the security
group ID.public List<IpPermission> getIpPermissions()
The sets of IP permissions.
public void setIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions.
ipPermissions
- The sets of IP permissions.public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions)
The sets of IP permissions.
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 sets of IP permissions.public AuthorizeSecurityGroupIngressRequest withIpPermissions(Collection<IpPermission> ipPermissions)
The sets of IP permissions.
ipPermissions
- The sets of IP permissions.public void setIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of any
ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of
any ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public String getIpProtocol()
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of any
ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of
any ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public AuthorizeSecurityGroupIngressRequest withIpProtocol(String ipProtocol)
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify
icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of any
ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
ipProtocol
- The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To
specify icmpv6
, use a set of IP permissions.
Use -1
to specify all protocols. If you specify -1
or a protocol other than
tcp
, udp
, or icmp
, traffic on all ports is allowed, regardless of
any ports you specify.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. The source security group must be in the same VPC.
sourceSecurityGroupName
- [Default VPC] The name of the source security group. You can't specify this parameter in combination with
the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the
end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a
specific IP protocol and port range, use a set of IP permissions instead. The source security group must
be in the same VPC.public String getSourceSecurityGroupName()
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. The source security group must be in the same VPC.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
[Default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. The source security group must be in the same VPC.
sourceSecurityGroupName
- [Default VPC] The name of the source security group. You can't specify this parameter in combination with
the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the
end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a
specific IP protocol and port range, use a set of IP permissions instead. The source security group must
be in the same VPC.public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupOwnerId
- [Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security
group is in a different account. You can't specify this parameter in combination with the following
parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the
port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP
protocol and port range, use a set of IP permissions instead.public String getSourceSecurityGroupOwnerId()
[Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.
public AuthorizeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
[Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.
sourceSecurityGroupOwnerId
- [Nondefault VPC] The Amazon Web Services account ID for the source security group, if the source security
group is in a different account. You can't specify this parameter in combination with the following
parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the
port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP
protocol and port range, use a set of 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 code. A value of -1 indicates all ICMP codes. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
code. A value of -1 indicates all ICMP codes. If you specify all ICMP types, you must specify all ICMP
codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
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 code. A value of -1 indicates all ICMP codes. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
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 code. A value of -1 indicates all ICMP codes. If you specify all ICMP types, you must specify all ICMP codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
toPort
- If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the
code. A value of -1 indicates all ICMP codes. If you specify all ICMP types, you must specify all ICMP
codes.
Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.
public List<TagSpecification> getTagSpecifications()
[VPC Only] The tags applied to the security group rule.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
[VPC Only] The tags applied to the security group rule.
tagSpecifications
- [VPC Only] The tags applied to the security group rule.public AuthorizeSecurityGroupIngressRequest withTagSpecifications(TagSpecification... tagSpecifications)
[VPC Only] 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
- [VPC Only] The tags applied to the security group rule.public AuthorizeSecurityGroupIngressRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
[VPC Only] The tags applied to the security group rule.
tagSpecifications
- [VPC Only] 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()
clone
in class AmazonWebServiceRequest
Copyright © 2024. All rights reserved.