CopyableBuilder<CreateConstraintRequest.Builder,CreateConstraintRequest>
, SdkBuilder<CreateConstraintRequest.Builder,CreateConstraintRequest>
public static interface CreateConstraintRequest.Builder extends CopyableBuilder<CreateConstraintRequest.Builder,CreateConstraintRequest>
Modifier and Type | Method | Description |
---|---|---|
CreateConstraintRequest.Builder |
acceptLanguage(String acceptLanguage) |
The language code to use for this operation.
|
CreateConstraintRequest.Builder |
description(String description) |
The text description of the constraint.
|
CreateConstraintRequest.Builder |
idempotencyToken(String idempotencyToken) |
A token to disambiguate duplicate requests.
|
CreateConstraintRequest.Builder |
parameters(String parameters) |
The constraint parameters.
|
CreateConstraintRequest.Builder |
portfolioId(String portfolioId) |
The portfolio identifier.
|
CreateConstraintRequest.Builder |
productId(String productId) |
The product identifier.
|
CreateConstraintRequest.Builder |
type(String type) |
The type of the constraint.
|
copy
apply, build
CreateConstraintRequest.Builder acceptLanguage(String acceptLanguage)
The language code to use for this operation. Supported language codes are as follows:
"en" (English)
"jp" (Japanese)
"zh" (Chinese)
If no code is specified, "en" is used as the default.
acceptLanguage
- The language code to use for this operation. Supported language codes are as follows:
"en" (English)
"jp" (Japanese)
"zh" (Chinese)
If no code is specified, "en" is used as the default.
CreateConstraintRequest.Builder portfolioId(String portfolioId)
The portfolio identifier.
portfolioId
- The portfolio identifier.CreateConstraintRequest.Builder productId(String productId)
The product identifier.
productId
- The product identifier.CreateConstraintRequest.Builder parameters(String parameters)
The constraint parameters. Expected values vary depending on which Type is specified. For examples, see the bottom of this topic.
For Type LAUNCH
, the RoleArn
property is required.
For Type NOTIFICATION
, the NotificationArns
property is required.
For Type TEMPLATE
, the Rules
property is required.
parameters
- The constraint parameters. Expected values vary depending on which Type is specified. For
examples, see the bottom of this topic.
For Type LAUNCH
, the RoleArn
property is required.
For Type NOTIFICATION
, the NotificationArns
property is required.
For Type TEMPLATE
, the Rules
property is required.
CreateConstraintRequest.Builder type(String type)
The type of the constraint. Case-sensitive valid values are: LAUNCH
, NOTIFICATION
,
or TEMPLATE
.
type
- The type of the constraint. Case-sensitive valid values are: LAUNCH
,
NOTIFICATION
, or TEMPLATE
.CreateConstraintRequest.Builder description(String description)
The text description of the constraint.
description
- The text description of the constraint.CreateConstraintRequest.Builder idempotencyToken(String idempotencyToken)
A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.
idempotencyToken
- A token to disambiguate duplicate requests. You can create multiple resources using the same input in
multiple requests, provided that you also specify a different idempotency token for each request.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.