java.lang.Object
com.azure.resourcemanager.customerinsights.fluent.models.Role

public final class Role extends Object
The Role definition.
  • Constructor Details

    • Role

      public Role()
      Creates an instance of Role class.
  • Method Details

    • roleName

      public String roleName()
      Get the roleName property: The role name.
      Returns:
      the roleName value.
    • withRoleName

      public Role withRoleName(String roleName)
      Set the roleName property: The role name.
      Parameters:
      roleName - the roleName value to set.
      Returns:
      the Role object itself.
    • description

      public String description()
      Get the description property: The description of the role.
      Returns:
      the description value.
    • withDescription

      public Role withDescription(String description)
      Set the description property: The description of the role.
      Parameters:
      description - the description value to set.
      Returns:
      the Role object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.