@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizationRule extends Object implements Serializable, Cloneable
Information about an authorization rule.
Constructor and Description |
---|
AuthorizationRule() |
Modifier and Type | Method and Description |
---|---|
AuthorizationRule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAccessAll()
Indicates whether the authorization rule grants access to all clients.
|
String |
getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the authorization rule is associated.
|
String |
getDescription()
A brief description of the authorization rule.
|
String |
getDestinationCidr()
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
|
String |
getGroupId()
The ID of the Active Directory group to which the authorization rule grants access.
|
ClientVpnAuthorizationRuleStatus |
getStatus()
The current state of the authorization rule.
|
int |
hashCode() |
Boolean |
isAccessAll()
Indicates whether the authorization rule grants access to all clients.
|
void |
setAccessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
|
void |
setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
|
void |
setDescription(String description)
A brief description of the authorization rule.
|
void |
setDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
|
void |
setGroupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
|
void |
setStatus(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
|
String |
toString()
Returns a string representation of this object.
|
AuthorizationRule |
withAccessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
|
AuthorizationRule |
withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
|
AuthorizationRule |
withDescription(String description)
A brief description of the authorization rule.
|
AuthorizationRule |
withDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
|
AuthorizationRule |
withGroupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
|
AuthorizationRule |
withStatus(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
|
public void setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the authorization rule is associated.public String getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the authorization rule is associated.
public AuthorizationRule withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the authorization rule is associated.public void setDescription(String description)
A brief description of the authorization rule.
description
- A brief description of the authorization rule.public String getDescription()
A brief description of the authorization rule.
public AuthorizationRule withDescription(String description)
A brief description of the authorization rule.
description
- A brief description of the authorization rule.public void setGroupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
groupId
- The ID of the Active Directory group to which the authorization rule grants access.public String getGroupId()
The ID of the Active Directory group to which the authorization rule grants access.
public AuthorizationRule withGroupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
groupId
- The ID of the Active Directory group to which the authorization rule grants access.public void setAccessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
accessAll
- Indicates whether the authorization rule grants access to all clients.public Boolean getAccessAll()
Indicates whether the authorization rule grants access to all clients.
public AuthorizationRule withAccessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
accessAll
- Indicates whether the authorization rule grants access to all clients.public Boolean isAccessAll()
Indicates whether the authorization rule grants access to all clients.
public void setDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
destinationCidr
- The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.public String getDestinationCidr()
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
public AuthorizationRule withDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
destinationCidr
- The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.public void setStatus(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
status
- The current state of the authorization rule.public ClientVpnAuthorizationRuleStatus getStatus()
The current state of the authorization rule.
public AuthorizationRule withStatus(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
status
- The current state of the authorization rule.public String toString()
toString
in class Object
Object.toString()
public AuthorizationRule clone()