Interface PutIndexPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchLogsResponse.Builder,CopyableBuilder<PutIndexPolicyResponse.Builder,,PutIndexPolicyResponse> SdkBuilder<PutIndexPolicyResponse.Builder,,PutIndexPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutIndexPolicyResponse
public static interface PutIndexPolicyResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<PutIndexPolicyResponse.Builder,PutIndexPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutIndexPolicyResponse.BuilderindexPolicy(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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaIndexPolicy.builder().When the
Consumercompletes,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:
-