Interface UpdateTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateTemplateRequest.Builder,,UpdateTemplateRequest> NetworkSecurityManagerRequest.Builder,SdkBuilder<UpdateTemplateRequest.Builder,,UpdateTemplateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptionassociatedRuleList(Collection<RuleReference> associatedRuleList) The rules associated with the template.associatedRuleList(Consumer<RuleReference.Builder>... associatedRuleList) The rules associated with the template.associatedRuleList(RuleReference... associatedRuleList) The rules associated with the template.clientToken(String clientToken) A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time.isPublished(Boolean isPublished) Specifies whether to publish the resource.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.templateDescription(String templateDescription) A description of the template.templateIdentifier(String templateIdentifier) The identifier of the template.updateToken(String updateToken) A token used for optimistic concurrency control.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networksecuritymanager.model.NetworkSecurityManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
templateIdentifier
The identifier of the template. This is the template's Amazon Resource Name (ARN).
- Parameters:
templateIdentifier- The identifier of the template. This is the template's Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateToken
A token used for optimistic concurrency control. Each read and write returns an
updateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.- Parameters:
updateToken- A token used for optimistic concurrency control. Each read and write returns anupdateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateDescription
A description of the template.
- Parameters:
templateDescription- A description of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedRuleList
The rules associated with the template.
- Parameters:
associatedRuleList- The rules associated with the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedRuleList
The rules associated with the template.
- Parameters:
associatedRuleList- The rules associated with the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedRuleList
UpdateTemplateRequest.Builder associatedRuleList(Consumer<RuleReference.Builder>... associatedRuleList) The rules associated with the template.
This is a convenience method that creates an instance of theRuleReference.Builderavoiding the need to create one manually viaRuleReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociatedRuleList(List<RuleReference>).- Parameters:
associatedRuleList- a consumer that will call methods onRuleReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isPublished
Specifies whether to publish the resource. When
true, the resource is saved in published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT).- Parameters:
isPublished- Specifies whether to publish the resource. Whentrue, the resource is saved in published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.
- Parameters:
clientToken- A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-