Class TagResourceContractInner
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.TagResourceContractInner
-
public final class TagResourceContractInner extends Object
TagResource contract properties.
-
-
Constructor Summary
Constructors Constructor Description TagResourceContractInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiTagResourceContractProperties
api()
Get the api property: API associated with the tag.OperationTagResourceContractProperties
operation()
Get the operation property: Operation associated with the tag.ProductTagResourceContractProperties
product()
Get the product property: Product associated with the tag.TagResourceContractProperties
tag()
Get the tag property: Tag associated with the resource.void
validate()
Validates the instance.TagResourceContractInner
withApi(ApiTagResourceContractProperties api)
Set the api property: API associated with the tag.TagResourceContractInner
withOperation(OperationTagResourceContractProperties operation)
Set the operation property: Operation associated with the tag.TagResourceContractInner
withProduct(ProductTagResourceContractProperties product)
Set the product property: Product associated with the tag.TagResourceContractInner
withTag(TagResourceContractProperties tag)
Set the tag property: Tag associated with the resource.
-
-
-
Method Detail
-
tag
public TagResourceContractProperties tag()
Get the tag property: Tag associated with the resource.- Returns:
- the tag value.
-
withTag
public TagResourceContractInner withTag(TagResourceContractProperties tag)
Set the tag property: Tag associated with the resource.- Parameters:
tag
- the tag value to set.- Returns:
- the TagResourceContractInner object itself.
-
api
public ApiTagResourceContractProperties api()
Get the api property: API associated with the tag.- Returns:
- the api value.
-
withApi
public TagResourceContractInner withApi(ApiTagResourceContractProperties api)
Set the api property: API associated with the tag.- Parameters:
api
- the api value to set.- Returns:
- the TagResourceContractInner object itself.
-
operation
public OperationTagResourceContractProperties operation()
Get the operation property: Operation associated with the tag.- Returns:
- the operation value.
-
withOperation
public TagResourceContractInner withOperation(OperationTagResourceContractProperties operation)
Set the operation property: Operation associated with the tag.- Parameters:
operation
- the operation value to set.- Returns:
- the TagResourceContractInner object itself.
-
product
public ProductTagResourceContractProperties product()
Get the product property: Product associated with the tag.- Returns:
- the product value.
-
withProduct
public TagResourceContractInner withProduct(ProductTagResourceContractProperties product)
Set the product property: Product associated with the tag.- Parameters:
product
- the product value to set.- Returns:
- the TagResourceContractInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-