Partager via


IntentContent Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.IntentContent

Implements

public final class IntentContent
implements JsonSerializable<IntentContent>

Intent information.

Constructor Summary

Constructor Description
IntentContent()

Creates an instance of IntentContent class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description property.

String destinationResourceId()

Get the destinationResourceId property: Destination resource id of the intent.

static IntentContent fromJson(JsonReader jsonReader)

Reads an instance of IntentContent from the JsonReader.

IpTraffic ipTraffic()

Get the ipTraffic property: IP traffic information.

String sourceResourceId()

Get the sourceResourceId property: Source resource id of the intent.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IntentContent withDescription(String description)

Set the description property: The description property.

IntentContent withDestinationResourceId(String destinationResourceId)

Set the destinationResourceId property: Destination resource id of the intent.

IntentContent withIpTraffic(IpTraffic ipTraffic)

Set the ipTraffic property: IP traffic information.

IntentContent withSourceResourceId(String sourceResourceId)

Set the sourceResourceId property: Source resource id of the intent.

Methods inherited from java.lang.Object

Constructor Details

IntentContent

public IntentContent()

Creates an instance of IntentContent class.

Method Details

description

public String description()

Get the description property: The description property.

Returns:

the description value.

destinationResourceId

public String destinationResourceId()

Get the destinationResourceId property: Destination resource id of the intent.

Returns:

the destinationResourceId value.

fromJson

public static IntentContent fromJson(JsonReader jsonReader)

Reads an instance of IntentContent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ipTraffic

public IpTraffic ipTraffic()

Get the ipTraffic property: IP traffic information.

Returns:

the ipTraffic value.

sourceResourceId

public String sourceResourceId()

Get the sourceResourceId property: Source resource id of the intent.

Returns:

the sourceResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public IntentContent withDescription(String description)

Set the description property: The description property.

Parameters:

description - the description value to set.

Returns:

the IntentContent object itself.

withDestinationResourceId

public IntentContent withDestinationResourceId(String destinationResourceId)

Set the destinationResourceId property: Destination resource id of the intent.

Parameters:

destinationResourceId - the destinationResourceId value to set.

Returns:

the IntentContent object itself.

withIpTraffic

public IntentContent withIpTraffic(IpTraffic ipTraffic)

Set the ipTraffic property: IP traffic information.

Parameters:

ipTraffic - the ipTraffic value to set.

Returns:

the IntentContent object itself.

withSourceResourceId

public IntentContent withSourceResourceId(String sourceResourceId)

Set the sourceResourceId property: Source resource id of the intent.

Parameters:

sourceResourceId - the sourceResourceId value to set.

Returns:

the IntentContent object itself.

Applies to