Class EndpointPropertiesCustomHeadersItem

java.lang.Object
com.azure.resourcemanager.trafficmanager.models.EndpointPropertiesCustomHeadersItem

public final class EndpointPropertiesCustomHeadersItem extends Object
Custom header name and value.
  • Constructor Details

    • EndpointPropertiesCustomHeadersItem

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

    • name

      public String name()
      Get the name property: Header name.
      Returns:
      the name value.
    • withName

      Set the name property: Header name.
      Parameters:
      name - the name value to set.
      Returns:
      the EndpointPropertiesCustomHeadersItem object itself.
    • value

      public String value()
      Get the value property: Header value.
      Returns:
      the value value.
    • withValue

      public EndpointPropertiesCustomHeadersItem withValue(String value)
      Set the value property: Header value.
      Parameters:
      value - the value value to set.
      Returns:
      the EndpointPropertiesCustomHeadersItem object itself.
    • validate

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