次の方法で共有


HeaderField Class

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

Implements

public final class HeaderField
implements JsonSerializable<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
static HeaderField fromJson(JsonReader jsonReader)

Reads an instance of HeaderField from the JsonReader.

String headerFieldName()

Get the headerFieldName property: The name of the header.

String headerFieldValue()

Get the headerFieldValue property: The value of the header.

JsonWriter toJson(JsonWriter jsonWriter)
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

fromJson

public static HeaderField fromJson(JsonReader jsonReader)

Reads an instance of HeaderField from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HeaderField if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HeaderField.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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