Interface GetArchiveRuleResponse.Builder
- All Superinterfaces:
AccessAnalyzerResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<GetArchiveRuleResponse.Builder,
,GetArchiveRuleResponse> SdkBuilder<GetArchiveRuleResponse.Builder,
,GetArchiveRuleResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetArchiveRuleResponse
public static interface GetArchiveRuleResponse.Builder
extends AccessAnalyzerResponse.Builder, SdkPojo, CopyableBuilder<GetArchiveRuleResponse.Builder,GetArchiveRuleResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetArchiveRuleResponse.Builder
archiveRule
(Consumer<ArchiveRuleSummary.Builder> archiveRule) Sets the value of the ArchiveRule property for this object.archiveRule
(ArchiveRuleSummary archiveRule) Sets the value of the ArchiveRule property for this object.Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
archiveRule
Sets the value of the ArchiveRule property for this object.- Parameters:
archiveRule
- The new value for the ArchiveRule property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveRule
default GetArchiveRuleResponse.Builder archiveRule(Consumer<ArchiveRuleSummary.Builder> archiveRule) Sets the value of the ArchiveRule property for this object. This is a convenience method that creates an instance of theArchiveRuleSummary.Builder
avoiding the need to create one manually viaArchiveRuleSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toarchiveRule(ArchiveRuleSummary)
.- Parameters:
archiveRule
- a consumer that will call methods onArchiveRuleSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-