Interface GetSupplyChainManagedPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContinuumResponse.Builder,CopyableBuilder<GetSupplyChainManagedPolicyResponse.Builder,,GetSupplyChainManagedPolicyResponse> SdkBuilder<GetSupplyChainManagedPolicyResponse.Builder,,GetSupplyChainManagedPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSupplyChainManagedPolicyResponse
@Mutable
@NotThreadSafe
public static interface GetSupplyChainManagedPolicyResponse.Builder
extends ContinuumResponse.Builder, SdkPojo, CopyableBuilder<GetSupplyChainManagedPolicyResponse.Builder,GetSupplyChainManagedPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the service-managed policy.The ID of the service-managed policy.The AWS service that manages the policy, as a service principal.policy(Consumer<SupplyChainPolicy.Builder> policy) The name, description, and rules of the policy.policy(SupplyChainPolicy policy) The name, description, and rules of the policy.Methods inherited from interface software.amazon.awssdk.services.continuum.model.ContinuumResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
id
The ID of the service-managed policy.
- Parameters:
id- The ID of the service-managed policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the service-managed policy.
- Parameters:
arn- The ARN of the service-managed policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedBy
The AWS service that manages the policy, as a service principal.
- Parameters:
managedBy- The AWS service that manages the policy, as a service principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The name, description, and rules of the policy.
- Parameters:
policy- The name, description, and rules of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
default GetSupplyChainManagedPolicyResponse.Builder policy(Consumer<SupplyChainPolicy.Builder> policy) The name, description, and rules of the policy.
This is a convenience method that creates an instance of theSupplyChainPolicy.Builderavoiding the need to create one manually viaSupplyChainPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(SupplyChainPolicy).- Parameters:
policy- a consumer that will call methods onSupplyChainPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-