Interface GetPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPolicyResponse.Builder,,GetPolicyResponse> NetworkSecurityManagerResponse.Builder,SdkBuilder<GetPolicyResponse.Builder,,GetPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetPolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptionassociatedTemplateAndRuleList(Collection<AssociatedTemplateOrRule> associatedTemplateAndRuleList) The templates and rules associated with the policy.associatedTemplateAndRuleList(Consumer<AssociatedTemplateOrRule.Builder>... associatedTemplateAndRuleList) The templates and rules associated with the policy.associatedTemplateAndRuleList(AssociatedTemplateOrRule... associatedTemplateAndRuleList) The templates and rules associated with the policy.firewallType(String firewallType) The firewall type associated with the resource.firewallType(PolicyFirewallType firewallType) The firewall type associated with the resource.hasPublishedVersion(Boolean hasPublishedVersion) Specifies whether a published version of the resource exists.isSnapshot(Boolean isSnapshot) Specifies whether the resource is a snapshot of a published version.The Amazon Resource Name (ARN) of the policy.default GetPolicyResponse.BuilderpolicyConfiguration(Consumer<PolicyConfiguration.Builder> policyConfiguration) The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.policyConfiguration(PolicyConfiguration policyConfiguration) The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.policyDescription(String policyDescription) A description of the policy.The service-generated id of the policy.policyName(String policyName) The name of the policy.The priority of the resource.The current status of the resource:DRAFT(unpublished, editable) orACTIVE(published, in use).status(EntityStatus status) The current status of the resource:DRAFT(unpublished, editable) orACTIVE(published, in use).The time when the resource was last updated.updateToken(String updateToken) A token used for optimistic concurrency control.The version of the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networksecuritymanager.model.NetworkSecurityManagerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyId
The service-generated id of the policy.
- Parameters:
policyId- The service-generated id of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The Amazon Resource Name (ARN) of the policy.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyName
The name of the policy.
- Parameters:
policyName- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDescription
A description of the policy.
- Parameters:
policyDescription- A description of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the resource:
DRAFT(unpublished, editable) orACTIVE(published, in use).- Parameters:
status- The current status of the resource:DRAFT(unpublished, editable) orACTIVE(published, in use).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the resource:
DRAFT(unpublished, editable) orACTIVE(published, in use).- Parameters:
status- The current status of the resource:DRAFT(unpublished, editable) orACTIVE(published, in use).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
The priority of the resource. A lower number indicates a higher priority.
- Parameters:
priority- The priority of the resource. A lower number indicates a higher priority.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTemplateAndRuleList
GetPolicyResponse.Builder associatedTemplateAndRuleList(Collection<AssociatedTemplateOrRule> associatedTemplateAndRuleList) The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.
- Parameters:
associatedTemplateAndRuleList- The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTemplateAndRuleList
GetPolicyResponse.Builder associatedTemplateAndRuleList(AssociatedTemplateOrRule... associatedTemplateAndRuleList) The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.
- Parameters:
associatedTemplateAndRuleList- The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedTemplateAndRuleList
GetPolicyResponse.Builder associatedTemplateAndRuleList(Consumer<AssociatedTemplateOrRule.Builder>... associatedTemplateAndRuleList) The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.
This is a convenience method that creates an instance of theAssociatedTemplateOrRule.Builderavoiding the need to create one manually viaAssociatedTemplateOrRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociatedTemplateAndRuleList(List<AssociatedTemplateOrRule>).- Parameters:
associatedTemplateAndRuleList- a consumer that will call methods onAssociatedTemplateOrRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
version
The version of the resource.
- Parameters:
version- The version of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateToken
A token used for optimistic concurrency control. Each read and write returns an
updateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.- Parameters:
updateToken- A token used for optimistic concurrency control. Each read and write returns anupdateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSnapshot
Specifies whether the resource is a snapshot of a published version.
- Parameters:
isSnapshot- Specifies whether the resource is a snapshot of a published version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hasPublishedVersion
Specifies whether a published version of the resource exists.
- Parameters:
hasPublishedVersion- Specifies whether a published version of the resource exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallType
The firewall type associated with the resource.
- Parameters:
firewallType- The firewall type associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firewallType
The firewall type associated with the resource.
- Parameters:
firewallType- The firewall type associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyConfiguration
The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.
- Parameters:
policyConfiguration- The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyConfiguration
default GetPolicyResponse.Builder policyConfiguration(Consumer<PolicyConfiguration.Builder> policyConfiguration) The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.
This is a convenience method that creates an instance of thePolicyConfiguration.Builderavoiding the need to create one manually viaPolicyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyConfiguration(PolicyConfiguration).- Parameters:
policyConfiguration- a consumer that will call methods onPolicyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedAt
The time when the resource was last updated.
- Parameters:
updatedAt- The time when the resource was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-