Interface GetTrafficPolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetTrafficPolicyResponse.Builder,GetTrafficPolicyResponse>,MailManagerResponse.Builder,SdkBuilder<GetTrafficPolicyResponse.Builder,GetTrafficPolicyResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetTrafficPolicyResponse
public static interface GetTrafficPolicyResponse.Builder extends MailManagerResponse.Builder, SdkPojo, CopyableBuilder<GetTrafficPolicyResponse.Builder,GetTrafficPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetTrafficPolicyResponse.BuildercreatedTimestamp(Instant createdTimestamp)The timestamp of when the traffic policy was created.GetTrafficPolicyResponse.BuilderdefaultAction(String defaultAction)The default action of the traffic policy.GetTrafficPolicyResponse.BuilderdefaultAction(AcceptAction defaultAction)The default action of the traffic policy.GetTrafficPolicyResponse.BuilderlastUpdatedTimestamp(Instant lastUpdatedTimestamp)The timestamp of when the traffic policy was last updated.GetTrafficPolicyResponse.BuildermaxMessageSizeBytes(Integer maxMessageSizeBytes)The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.GetTrafficPolicyResponse.BuilderpolicyStatements(Collection<PolicyStatement> policyStatements)The list of conditions which are in the traffic policy resource.GetTrafficPolicyResponse.BuilderpolicyStatements(Consumer<PolicyStatement.Builder>... policyStatements)The list of conditions which are in the traffic policy resource.GetTrafficPolicyResponse.BuilderpolicyStatements(PolicyStatement... policyStatements)The list of conditions which are in the traffic policy resource.GetTrafficPolicyResponse.BuildertrafficPolicyArn(String trafficPolicyArn)The Amazon Resource Name (ARN) of the traffic policy resource.GetTrafficPolicyResponse.BuildertrafficPolicyId(String trafficPolicyId)The identifier of the traffic policy resource.GetTrafficPolicyResponse.BuildertrafficPolicyName(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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
createdTimestamp
GetTrafficPolicyResponse.Builder createdTimestamp(Instant 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
GetTrafficPolicyResponse.Builder defaultAction(String 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:
AcceptAction,AcceptAction
-
defaultAction
GetTrafficPolicyResponse.Builder defaultAction(AcceptAction 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:
AcceptAction,AcceptAction
-
lastUpdatedTimestamp
GetTrafficPolicyResponse.Builder lastUpdatedTimestamp(Instant 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
GetTrafficPolicyResponse.Builder maxMessageSizeBytes(Integer 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
GetTrafficPolicyResponse.Builder policyStatements(Collection<PolicyStatement> 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(PolicyStatement... 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.Builderavoiding the need to create one manually viaPolicyStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#policyStatements(List.) - 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:
#policyStatements(java.util.Collection)
-
trafficPolicyArn
GetTrafficPolicyResponse.Builder trafficPolicyArn(String 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
GetTrafficPolicyResponse.Builder trafficPolicyId(String 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
GetTrafficPolicyResponse.Builder trafficPolicyName(String 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.
-
-