Interface DescribeSecurityPolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeSecurityPolicyResponse.Builder,DescribeSecurityPolicyResponse>
,SdkBuilder<DescribeSecurityPolicyResponse.Builder,DescribeSecurityPolicyResponse>
,SdkPojo
,SdkResponse.Builder
,TransferResponse.Builder
- Enclosing class:
- DescribeSecurityPolicyResponse
public static interface DescribeSecurityPolicyResponse.Builder extends TransferResponse.Builder, SdkPojo, CopyableBuilder<DescribeSecurityPolicyResponse.Builder,DescribeSecurityPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DescribeSecurityPolicyResponse.Builder
securityPolicy(Consumer<DescribedSecurityPolicy.Builder> securityPolicy)
An array containing the properties of the security policy.DescribeSecurityPolicyResponse.Builder
securityPolicy(DescribedSecurityPolicy securityPolicy)
An array containing the properties of the security policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
-
Methods inherited from interface software.amazon.awssdk.services.transfer.model.TransferResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
securityPolicy
DescribeSecurityPolicyResponse.Builder securityPolicy(DescribedSecurityPolicy securityPolicy)
An array containing the properties of the security policy.
- Parameters:
securityPolicy
- An array containing the properties of the security policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityPolicy
default DescribeSecurityPolicyResponse.Builder securityPolicy(Consumer<DescribedSecurityPolicy.Builder> securityPolicy)
An array containing the properties of the security policy.
This is a convenience method that creates an instance of theDescribedSecurityPolicy.Builder
avoiding the need to create one manually viaDescribedSecurityPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityPolicy(DescribedSecurityPolicy)
.- Parameters:
securityPolicy
- a consumer that will call methods onDescribedSecurityPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
securityPolicy(DescribedSecurityPolicy)
-
-