HeaderField Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.models.HeaderField

public final class HeaderField

A header to add to the WebTest.

Constructor Summary

Constructor Description
HeaderField()

Creates an instance of HeaderField class.

Method Summary

Modifier and Type Method and Description
String headerFieldName()

Get the headerFieldName property: The name of the header.

String headerFieldValue()

Get the headerFieldValue property: The value of the header.

void validate()

Validates the instance.

HeaderField withHeaderFieldName(String headerFieldName)

Set the headerFieldName property: The name of the header.

HeaderField withHeaderFieldValue(String headerFieldValue)

Set the headerFieldValue property: The value of the header.

Methods inherited from java.lang.Object

Constructor Details

HeaderField

public HeaderField()

Creates an instance of HeaderField class.

Method Details

headerFieldName

public String headerFieldName()

Get the headerFieldName property: The name of the header.

Returns:

the headerFieldName value.

headerFieldValue

public String headerFieldValue()

Get the headerFieldValue property: The value of the header.

Returns:

the headerFieldValue value.

validate

public void validate()

Validates the instance.

withHeaderFieldName

public HeaderField withHeaderFieldName(String headerFieldName)

Set the headerFieldName property: The name of the header.

Parameters:

headerFieldName - the headerFieldName value to set.

Returns:

the HeaderField object itself.

withHeaderFieldValue

public HeaderField withHeaderFieldValue(String headerFieldValue)

Set the headerFieldValue property: The value of the header.

Parameters:

headerFieldValue - the headerFieldValue value to set.

Returns:

the HeaderField object itself.

Applies to