Class TagResourceContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.TagResourceContractProperties
-
public final class TagResourceContractProperties extends Object
Contract defining the Tag property in the Tag Resource Contract.
-
-
Constructor Summary
Constructors Constructor Description TagResourceContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
Get the id property: Tag identifier.String
name()
Get the name property: Tag Name.void
validate()
Validates the instance.TagResourceContractProperties
withId(String id)
Set the id property: Tag identifier.TagResourceContractProperties
withName(String name)
Set the name property: Tag Name.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Tag identifier.- Returns:
- the id value.
-
withId
public TagResourceContractProperties withId(String id)
Set the id property: Tag identifier.- Parameters:
id
- the id value to set.- Returns:
- the TagResourceContractProperties object itself.
-
name
public String name()
Get the name property: Tag Name.- Returns:
- the name value.
-
withName
public TagResourceContractProperties withName(String name)
Set the name property: Tag Name.- Parameters:
name
- the name value to set.- Returns:
- the TagResourceContractProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-