Interface AddTagsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>,MachineLearningRequest.Builder,SdkBuilder<AddTagsRequest.Builder,AddTagsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- AddTagsRequest
public static interface AddTagsRequest.Builder extends MachineLearningRequest.Builder, SdkPojo, CopyableBuilder<AddTagsRequest.Builder,AddTagsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddTagsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AddTagsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)AddTagsRequest.BuilderresourceId(String resourceId)The ID of the ML object to tag.AddTagsRequest.BuilderresourceType(String resourceType)The type of the ML object to tag.AddTagsRequest.BuilderresourceType(TaggableResourceType resourceType)The type of the ML object to tag.AddTagsRequest.Buildertags(Collection<Tag> tags)The key-value pairs to use to create tags.AddTagsRequest.Buildertags(Consumer<Tag.Builder>... tags)The key-value pairs to use to create tags.AddTagsRequest.Buildertags(Tag... tags)The key-value pairs to use to create tags.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.machinelearning.model.MachineLearningRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
tags
AddTagsRequest.Builder tags(Collection<Tag> tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
- Parameters:
tags- The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AddTagsRequest.Builder tags(Tag... tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
- Parameters:
tags- The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AddTagsRequest.Builder tags(Consumer<Tag.Builder>... tags)
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
resourceId
AddTagsRequest.Builder resourceId(String resourceId)
The ID of the ML object to tag. For example,
exampleModelId.- Parameters:
resourceId- The ID of the ML object to tag. For example,exampleModelId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
AddTagsRequest.Builder resourceType(String resourceType)
The type of the ML object to tag.
- Parameters:
resourceType- The type of the ML object to tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TaggableResourceType,TaggableResourceType
-
resourceType
AddTagsRequest.Builder resourceType(TaggableResourceType resourceType)
The type of the ML object to tag.
- Parameters:
resourceType- The type of the ML object to tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TaggableResourceType,TaggableResourceType
-
overrideConfiguration
AddTagsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AddTagsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-