public static interface CreatePolicyRequest.Builder extends IoTRequest.Builder, CopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
Modifier and Type | Method and Description |
---|---|
CreatePolicyRequest.Builder |
policyDocument(String policyDocument)
The JSON document that describes the policy.
|
CreatePolicyRequest.Builder |
policyName(String policyName)
The policy name.
|
CreatePolicyRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
CreatePolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
build
requestOverrideConfig
copy
apply, build
CreatePolicyRequest.Builder policyName(String policyName)
The policy name.
policyName
- The policy name.CreatePolicyRequest.Builder policyDocument(String policyDocument)
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
policyDocument
- The JSON document that describes the policy. policyDocument must have a minimum length of 1,
with a maximum length of 2048, excluding whitespace.CreatePolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.CreatePolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.