Interface GetPolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>,FmsResponse.Builder,SdkBuilder<GetPolicyResponse.Builder,GetPolicyResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetPolicyResponse
public static interface GetPolicyResponse.Builder extends FmsResponse.Builder, SdkPojo, CopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetPolicyResponse.Builderpolicy(Consumer<Policy.Builder> policy)Information about the specified Firewall Manager policy.GetPolicyResponse.Builderpolicy(Policy policy)Information about the specified Firewall Manager policy.GetPolicyResponse.BuilderpolicyArn(String policyArn)The Amazon Resource Name (ARN) of the specified policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.fms.model.FmsResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
policy
GetPolicyResponse.Builder policy(Policy policy)
Information about the specified Firewall Manager policy.
- Parameters:
policy- Information about the specified Firewall Manager policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
default GetPolicyResponse.Builder policy(Consumer<Policy.Builder> policy)
Information about the specified Firewall Manager policy.
This is a convenience method that creates an instance of thePolicy.Builderavoiding the need to create one manually viaPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(Policy).- Parameters:
policy- a consumer that will call methods onPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
policy(Policy)
-
policyArn
GetPolicyResponse.Builder policyArn(String policyArn)
The Amazon Resource Name (ARN) of the specified policy.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the specified policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-