Interface PutIndexPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<PutIndexPolicyResponse.Builder,
,PutIndexPolicyResponse> SdkBuilder<PutIndexPolicyResponse.Builder,
,PutIndexPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PutIndexPolicyResponse
@Mutable
@NotThreadSafe
public static interface PutIndexPolicyResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<PutIndexPolicyResponse.Builder,PutIndexPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutIndexPolicyResponse.Builder
indexPolicy
(Consumer<IndexPolicy.Builder> indexPolicy) The index policy that you just created or updated.indexPolicy
(IndexPolicy indexPolicy) The index policy that you just created or updated.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
indexPolicy
The index policy that you just created or updated.
- Parameters:
indexPolicy
- The index policy that you just created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexPolicy
The index policy that you just created or updated.
This is a convenience method that creates an instance of theIndexPolicy.Builder
avoiding the need to create one manually viaIndexPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toindexPolicy(IndexPolicy)
.- Parameters:
indexPolicy
- a consumer that will call methods onIndexPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-