StaticDeliveryAttributeMapping Class

public final class StaticDeliveryAttributeMapping
extends DeliveryAttributeMapping

Static delivery attribute mapping details.

Constructor Summary

Constructor Description
StaticDeliveryAttributeMapping()

Creates an instance of StaticDeliveryAttributeMapping class.

Method Summary

Modifier and Type Method and Description
static StaticDeliveryAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of StaticDeliveryAttributeMapping from the JsonReader.

Boolean isSecret()

Get the isSecret property: Boolean flag to tell if the attribute contains sensitive information .

JsonWriter toJson(JsonWriter jsonWriter)
DeliveryAttributeMappingType type()

Get the type property: Type of the delivery attribute or header name.

void validate()

Validates the instance.

String value()

Get the value property: Value of the delivery attribute.

StaticDeliveryAttributeMapping withIsSecret(Boolean isSecret)

Set the isSecret property: Boolean flag to tell if the attribute contains sensitive information .

StaticDeliveryAttributeMapping withName(String name)

Set the name property: Name of the delivery attribute or header.

StaticDeliveryAttributeMapping withValue(String value)

Set the value property: Value of the delivery attribute.

Methods inherited from DeliveryAttributeMapping

Methods inherited from java.lang.Object

Constructor Details

StaticDeliveryAttributeMapping

public StaticDeliveryAttributeMapping()

Creates an instance of StaticDeliveryAttributeMapping class.

Method Details

fromJson

public static StaticDeliveryAttributeMapping fromJson(JsonReader jsonReader)

Reads an instance of StaticDeliveryAttributeMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StaticDeliveryAttributeMapping 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 StaticDeliveryAttributeMapping.

isSecret

public Boolean isSecret()

Get the isSecret property: Boolean flag to tell if the attribute contains sensitive information .

Returns:

the isSecret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StaticDeliveryAttributeMapping.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DeliveryAttributeMappingType type()

Get the type property: Type of the delivery attribute or header name.

Overrides:

StaticDeliveryAttributeMapping.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

StaticDeliveryAttributeMapping.validate()

value

public String value()

Get the value property: Value of the delivery attribute.

Returns:

the value value.

withIsSecret

public StaticDeliveryAttributeMapping withIsSecret(Boolean isSecret)

Set the isSecret property: Boolean flag to tell if the attribute contains sensitive information .

Parameters:

isSecret - the isSecret value to set.

Returns:

the StaticDeliveryAttributeMapping object itself.

withName

public StaticDeliveryAttributeMapping withName(String name)

Set the name property: Name of the delivery attribute or header.

Overrides:

StaticDeliveryAttributeMapping.withName(String name)

Parameters:

name

withValue

public StaticDeliveryAttributeMapping withValue(String value)

Set the value property: Value of the delivery attribute.

Parameters:

value - the value value to set.

Returns:

the StaticDeliveryAttributeMapping object itself.

Applies to

Azure SDK for Java

Preview