@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeFirewallPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeFirewallPolicyResult() |
Modifier and Type | Method and Description |
---|---|
DescribeFirewallPolicyResult |
clone() |
boolean |
equals(Object obj) |
FirewallPolicy |
getFirewallPolicy()
The policy for the specified firewall policy.
|
FirewallPolicyResponse |
getFirewallPolicyResponse()
The high-level properties of a firewall policy.
|
String |
getUpdateToken()
A token used for optimistic locking.
|
int |
hashCode() |
void |
setFirewallPolicy(FirewallPolicy firewallPolicy)
The policy for the specified firewall policy.
|
void |
setFirewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse)
The high-level properties of a firewall policy.
|
void |
setUpdateToken(String updateToken)
A token used for optimistic locking.
|
String |
toString()
Returns a string representation of this object.
|
DescribeFirewallPolicyResult |
withFirewallPolicy(FirewallPolicy firewallPolicy)
The policy for the specified firewall policy.
|
DescribeFirewallPolicyResult |
withFirewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse)
The high-level properties of a firewall policy.
|
DescribeFirewallPolicyResult |
withUpdateToken(String updateToken)
A token used for optimistic locking.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUpdateToken(String updateToken)
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure
that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of
it with current token. Reapply your changes as needed, then try the operation again using the new token.
updateToken
- A token used for optimistic locking. Network Firewall returns a token to your requests that access the
firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to
ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails
with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a
current copy of it with current token. Reapply your changes as needed, then try the operation again using
the new token.
public String getUpdateToken()
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure
that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of
it with current token. Reapply your changes as needed, then try the operation again using the new token.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to
ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails
with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a
current copy of it with current token. Reapply your changes as needed, then try the operation again using
the new token.
public DescribeFirewallPolicyResult withUpdateToken(String updateToken)
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure
that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of
it with current token. Reapply your changes as needed, then try the operation again using the new token.
updateToken
- A token used for optimistic locking. Network Firewall returns a token to your requests that access the
firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to
ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails
with an InvalidTokenException
. If this happens, retrieve the firewall policy again to get a
current copy of it with current token. Reapply your changes as needed, then try the operation again using
the new token.
public void setFirewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse)
The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
firewallPolicyResponse
- The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the
policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.public FirewallPolicyResponse getFirewallPolicyResponse()
The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
public DescribeFirewallPolicyResult withFirewallPolicyResponse(FirewallPolicyResponse firewallPolicyResponse)
The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.
firewallPolicyResponse
- The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the
policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.public void setFirewallPolicy(FirewallPolicy firewallPolicy)
The policy for the specified firewall policy.
firewallPolicy
- The policy for the specified firewall policy.public FirewallPolicy getFirewallPolicy()
The policy for the specified firewall policy.
public DescribeFirewallPolicyResult withFirewallPolicy(FirewallPolicy firewallPolicy)
The policy for the specified firewall policy.
firewallPolicy
- The policy for the specified firewall policy.public String toString()
toString
in class Object
Object.toString()
public DescribeFirewallPolicyResult clone()