次の方法で共有


OfferDetail Class

  • java.lang.Object
    • com.azure.resourcemanager.confluent.models.OfferDetail

Implements

public final class OfferDetail
implements JsonSerializable<OfferDetail>

Confluent Offer detail.

Constructor Summary

Constructor Description
OfferDetail()

Creates an instance of OfferDetail class.

Method Summary

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

Reads an instance of OfferDetail from the JsonReader.

String id()

Get the id property: Offer Id.

String planId()

Get the planId property: Offer Plan Id.

String planName()

Get the planName property: Offer Plan Name.

String privateOfferId()

Get the privateOfferId property: Private Offer Id.

List<String> privateOfferIds()

Get the privateOfferIds property: Array of Private Offer Ids.

String publisherId()

Get the publisherId property: Publisher Id.

SaaSOfferStatus status()

Get the status property: SaaS Offer Status.

String termId()

Get the termId property: Offer Plan Term Id.

String termUnit()

Get the termUnit property: Offer Plan Term unit.

JsonWriter toJson(JsonWriter jsonWriter)
OfferDetail withId(String id)

Set the id property: Offer Id.

OfferDetail withPlanId(String planId)

Set the planId property: Offer Plan Id.

OfferDetail withPlanName(String planName)

Set the planName property: Offer Plan Name.

OfferDetail withPrivateOfferId(String privateOfferId)

Set the privateOfferId property: Private Offer Id.

OfferDetail withPrivateOfferIds(List<String> privateOfferIds)

Set the privateOfferIds property: Array of Private Offer Ids.

OfferDetail withPublisherId(String publisherId)

Set the publisherId property: Publisher Id.

OfferDetail withStatus(SaaSOfferStatus status)

Set the status property: SaaS Offer Status.

OfferDetail withTermId(String termId)

Set the termId property: Offer Plan Term Id.

OfferDetail withTermUnit(String termUnit)

Set the termUnit property: Offer Plan Term unit.

Methods inherited from java.lang.Object

Constructor Details

OfferDetail

public OfferDetail()

Creates an instance of OfferDetail class.

Method Details

fromJson

public static OfferDetail fromJson(JsonReader jsonReader)

Reads an instance of OfferDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Offer Id.

Returns:

the id value.

planId

public String planId()

Get the planId property: Offer Plan Id.

Returns:

the planId value.

planName

public String planName()

Get the planName property: Offer Plan Name.

Returns:

the planName value.

privateOfferId

public String privateOfferId()

Get the privateOfferId property: Private Offer Id.

Returns:

the privateOfferId value.

privateOfferIds

public List<String> privateOfferIds()

Get the privateOfferIds property: Array of Private Offer Ids.

Returns:

the privateOfferIds value.

publisherId

public String publisherId()

Get the publisherId property: Publisher Id.

Returns:

the publisherId value.

status

public SaaSOfferStatus status()

Get the status property: SaaS Offer Status.

Returns:

the status value.

termId

public String termId()

Get the termId property: Offer Plan Term Id.

Returns:

the termId value.

termUnit

public String termUnit()

Get the termUnit property: Offer Plan Term unit.

Returns:

the termUnit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withId

public OfferDetail withId(String id)

Set the id property: Offer Id.

Parameters:

id - the id value to set.

Returns:

the OfferDetail object itself.

withPlanId

public OfferDetail withPlanId(String planId)

Set the planId property: Offer Plan Id.

Parameters:

planId - the planId value to set.

Returns:

the OfferDetail object itself.

withPlanName

public OfferDetail withPlanName(String planName)

Set the planName property: Offer Plan Name.

Parameters:

planName - the planName value to set.

Returns:

the OfferDetail object itself.

withPrivateOfferId

public OfferDetail withPrivateOfferId(String privateOfferId)

Set the privateOfferId property: Private Offer Id.

Parameters:

privateOfferId - the privateOfferId value to set.

Returns:

the OfferDetail object itself.

withPrivateOfferIds

public OfferDetail withPrivateOfferIds(List<String> privateOfferIds)

Set the privateOfferIds property: Array of Private Offer Ids.

Parameters:

privateOfferIds - the privateOfferIds value to set.

Returns:

the OfferDetail object itself.

withPublisherId

public OfferDetail withPublisherId(String publisherId)

Set the publisherId property: Publisher Id.

Parameters:

publisherId - the publisherId value to set.

Returns:

the OfferDetail object itself.

withStatus

public OfferDetail withStatus(SaaSOfferStatus status)

Set the status property: SaaS Offer Status.

Parameters:

status - the status value to set.

Returns:

the OfferDetail object itself.

withTermId

public OfferDetail withTermId(String termId)

Set the termId property: Offer Plan Term Id.

Parameters:

termId - the termId value to set.

Returns:

the OfferDetail object itself.

withTermUnit

public OfferDetail withTermUnit(String termUnit)

Set the termUnit property: Offer Plan Term unit.

Parameters:

termUnit - the termUnit value to set.

Returns:

the OfferDetail object itself.

Applies to