Interface GetTrafficPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetTrafficPolicyResponse.Builder,
,GetTrafficPolicyResponse> MailManagerResponse.Builder
,SdkBuilder<GetTrafficPolicyResponse.Builder,
,GetTrafficPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetTrafficPolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreatedTimestamp
(Instant createdTimestamp) The timestamp of when the traffic policy was created.defaultAction
(String defaultAction) The default action of the traffic policy.defaultAction
(AcceptAction defaultAction) The default action of the traffic policy.lastUpdatedTimestamp
(Instant lastUpdatedTimestamp) The timestamp of when the traffic policy was last updated.maxMessageSizeBytes
(Integer maxMessageSizeBytes) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.policyStatements
(Collection<PolicyStatement> policyStatements) The list of conditions which are in the traffic policy resource.policyStatements
(Consumer<PolicyStatement.Builder>... policyStatements) The list of conditions which are in the traffic policy resource.policyStatements
(PolicyStatement... policyStatements) The list of conditions which are in the traffic policy resource.trafficPolicyArn
(String trafficPolicyArn) The Amazon Resource Name (ARN) of the traffic policy resource.trafficPolicyId
(String trafficPolicyId) The identifier of the traffic policy resource.trafficPolicyName
(String trafficPolicyName) A user-friendly name for the traffic policy resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
createdTimestamp
The timestamp of when the traffic policy was created.
- Parameters:
createdTimestamp
- The timestamp of when the traffic policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAction
The default action of the traffic policy.
- Parameters:
defaultAction
- The default action of the traffic policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultAction
The default action of the traffic policy.
- Parameters:
defaultAction
- The default action of the traffic policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedTimestamp
The timestamp of when the traffic policy was last updated.
- Parameters:
lastUpdatedTimestamp
- The timestamp of when the traffic policy was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxMessageSizeBytes
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
- Parameters:
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
The list of conditions which are in the traffic policy resource.
- Parameters:
policyStatements
- The list of conditions which are in the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
The list of conditions which are in the traffic policy resource.
- Parameters:
policyStatements
- The list of conditions which are in the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
GetTrafficPolicyResponse.Builder policyStatements(Consumer<PolicyStatement.Builder>... policyStatements) The list of conditions which are in the traffic policy resource.
This is a convenience method that creates an instance of thePolicyStatement.Builder
avoiding the need to create one manually viaPolicyStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyStatements(List<PolicyStatement>)
.- Parameters:
policyStatements
- a consumer that will call methods onPolicyStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trafficPolicyArn
The Amazon Resource Name (ARN) of the traffic policy resource.
- Parameters:
trafficPolicyArn
- The Amazon Resource Name (ARN) of the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficPolicyId
The identifier of the traffic policy resource.
- Parameters:
trafficPolicyId
- The identifier of the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficPolicyName
A user-friendly name for the traffic policy resource.
- Parameters:
trafficPolicyName
- A user-friendly name for the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-