Class AttachTagOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.global_tagging.v1.model.AttachTagOptions.Builder
-
- Enclosing class:
- AttachTagOptions
public static class AttachTagOptions.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachTagOptions.BuilderaccountId(java.lang.String accountId)Set the accountId.AttachTagOptions.BuilderaddResources(Resource resources)Adds a new element to resources.AttachTagOptions.BuilderaddTagNames(java.lang.String tagNames)Adds a new element to tagNames.AttachTagOptionsbuild()Builds a AttachTagOptions.AttachTagOptions.Builderquery(QueryString query)Set the query.AttachTagOptions.Builderreplace(java.lang.Boolean replace)Set the replace.AttachTagOptions.Builderresources(java.util.List<Resource> resources)Set the resources.AttachTagOptions.BuildertagName(java.lang.String tagName)Set the tagName.AttachTagOptions.BuildertagNames(java.util.List<java.lang.String> tagNames)Set the tagNames.AttachTagOptions.BuildertagType(java.lang.String tagType)Set the tagType.AttachTagOptions.Builderupdate(java.lang.Boolean update)Set the update.AttachTagOptions.BuilderxCorrelationId(java.lang.String xCorrelationId)Set the xCorrelationId.AttachTagOptions.BuilderxRequestId(java.lang.String xRequestId)Set the xRequestId.
-
-
-
Method Detail
-
build
public AttachTagOptions build()
Builds a AttachTagOptions.- Returns:
- the new AttachTagOptions instance
-
addTagNames
public AttachTagOptions.Builder addTagNames(java.lang.String tagNames)
Adds a new element to tagNames.- Parameters:
tagNames- the new element to be added- Returns:
- the AttachTagOptions builder
-
addResources
public AttachTagOptions.Builder addResources(Resource resources)
Adds a new element to resources.- Parameters:
resources- the new element to be added- Returns:
- the AttachTagOptions builder
-
tagName
public AttachTagOptions.Builder tagName(java.lang.String tagName)
Set the tagName.- Parameters:
tagName- the tagName- Returns:
- the AttachTagOptions builder
-
tagNames
public AttachTagOptions.Builder tagNames(java.util.List<java.lang.String> tagNames)
Set the tagNames. Existing tagNames will be replaced.- Parameters:
tagNames- the tagNames- Returns:
- the AttachTagOptions builder
-
resources
public AttachTagOptions.Builder resources(java.util.List<Resource> resources)
Set the resources. Existing resources will be replaced.- Parameters:
resources- the resources- Returns:
- the AttachTagOptions builder
-
query
public AttachTagOptions.Builder query(QueryString query)
Set the query.- Parameters:
query- the query- Returns:
- the AttachTagOptions builder
-
xRequestId
public AttachTagOptions.Builder xRequestId(java.lang.String xRequestId)
Set the xRequestId.- Parameters:
xRequestId- the xRequestId- Returns:
- the AttachTagOptions builder
-
xCorrelationId
public AttachTagOptions.Builder xCorrelationId(java.lang.String xCorrelationId)
Set the xCorrelationId.- Parameters:
xCorrelationId- the xCorrelationId- Returns:
- the AttachTagOptions builder
-
accountId
public AttachTagOptions.Builder accountId(java.lang.String accountId)
Set the accountId.- Parameters:
accountId- the accountId- Returns:
- the AttachTagOptions builder
-
tagType
public AttachTagOptions.Builder tagType(java.lang.String tagType)
Set the tagType.- Parameters:
tagType- the tagType- Returns:
- the AttachTagOptions builder
-
replace
public AttachTagOptions.Builder replace(java.lang.Boolean replace)
Set the replace.- Parameters:
replace- the replace- Returns:
- the AttachTagOptions builder
-
update
public AttachTagOptions.Builder update(java.lang.Boolean update)
Set the update.- Parameters:
update- the update- Returns:
- the AttachTagOptions builder
-
-