DatadogAgreementProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.datadog.models.DatadogAgreementProperties

Implements

public final class DatadogAgreementProperties
implements JsonSerializable<DatadogAgreementProperties>

Terms properties.

Constructor Summary

Constructor Description
DatadogAgreementProperties()

Creates an instance of DatadogAgreementProperties class.

Method Summary

Modifier and Type Method and Description
Boolean accepted()

Get the accepted property: If any version of the terms have been accepted, otherwise false.

static DatadogAgreementProperties fromJson(JsonReader jsonReader)

Reads an instance of DatadogAgreementProperties from the JsonReader.

String licenseTextLink()

Get the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.

String plan()

Get the plan property: Plan identifier string.

String privacyPolicyLink()

Get the privacyPolicyLink property: Link to the privacy policy of the publisher.

String product()

Get the product property: Product identifier string.

String publisher()

Get the publisher property: Publisher identifier string.

OffsetDateTime retrieveDatetime()

Get the retrieveDatetime property: Date and time in UTC of when the terms were accepted.

String signature()

Get the signature property: Terms signature.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatadogAgreementProperties withAccepted(Boolean accepted)

Set the accepted property: If any version of the terms have been accepted, otherwise false.

DatadogAgreementProperties withLicenseTextLink(String licenseTextLink)

Set the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.

DatadogAgreementProperties withPlan(String plan)

Set the plan property: Plan identifier string.

DatadogAgreementProperties withPrivacyPolicyLink(String privacyPolicyLink)

Set the privacyPolicyLink property: Link to the privacy policy of the publisher.

DatadogAgreementProperties withProduct(String product)

Set the product property: Product identifier string.

DatadogAgreementProperties withPublisher(String publisher)

Set the publisher property: Publisher identifier string.

DatadogAgreementProperties withRetrieveDatetime(OffsetDateTime retrieveDatetime)

Set the retrieveDatetime property: Date and time in UTC of when the terms were accepted.

DatadogAgreementProperties withSignature(String signature)

Set the signature property: Terms signature.

Methods inherited from java.lang.Object

Constructor Details

DatadogAgreementProperties

public DatadogAgreementProperties()

Creates an instance of DatadogAgreementProperties class.

Method Details

accepted

public Boolean accepted()

Get the accepted property: If any version of the terms have been accepted, otherwise false.

Returns:

the accepted value.

fromJson

public static DatadogAgreementProperties fromJson(JsonReader jsonReader)

Reads an instance of DatadogAgreementProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

licenseTextLink

public String licenseTextLink()

Get the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.

Returns:

the licenseTextLink value.

plan

public String plan()

Get the plan property: Plan identifier string.

Returns:

the plan value.

privacyPolicyLink

public String privacyPolicyLink()

Get the privacyPolicyLink property: Link to the privacy policy of the publisher.

Returns:

the privacyPolicyLink value.

product

public String product()

Get the product property: Product identifier string.

Returns:

the product value.

publisher

public String publisher()

Get the publisher property: Publisher identifier string.

Returns:

the publisher value.

retrieveDatetime

public OffsetDateTime retrieveDatetime()

Get the retrieveDatetime property: Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.

Returns:

the retrieveDatetime value.

signature

public String signature()

Get the signature property: Terms signature.

Returns:

the signature value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccepted

public DatadogAgreementProperties withAccepted(Boolean accepted)

Set the accepted property: If any version of the terms have been accepted, otherwise false.

Parameters:

accepted - the accepted value to set.

Returns:

the DatadogAgreementProperties object itself.

withLicenseTextLink

public DatadogAgreementProperties withLicenseTextLink(String licenseTextLink)

Set the licenseTextLink property: Link to HTML with Microsoft and Publisher terms.

Parameters:

licenseTextLink - the licenseTextLink value to set.

Returns:

the DatadogAgreementProperties object itself.

withPlan

public DatadogAgreementProperties withPlan(String plan)

Set the plan property: Plan identifier string.

Parameters:

plan - the plan value to set.

Returns:

the DatadogAgreementProperties object itself.

withPrivacyPolicyLink

public DatadogAgreementProperties withPrivacyPolicyLink(String privacyPolicyLink)

Set the privacyPolicyLink property: Link to the privacy policy of the publisher.

Parameters:

privacyPolicyLink - the privacyPolicyLink value to set.

Returns:

the DatadogAgreementProperties object itself.

withProduct

public DatadogAgreementProperties withProduct(String product)

Set the product property: Product identifier string.

Parameters:

product - the product value to set.

Returns:

the DatadogAgreementProperties object itself.

withPublisher

public DatadogAgreementProperties withPublisher(String publisher)

Set the publisher property: Publisher identifier string.

Parameters:

publisher - the publisher value to set.

Returns:

the DatadogAgreementProperties object itself.

withRetrieveDatetime

public DatadogAgreementProperties withRetrieveDatetime(OffsetDateTime retrieveDatetime)

Set the retrieveDatetime property: Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.

Parameters:

retrieveDatetime - the retrieveDatetime value to set.

Returns:

the DatadogAgreementProperties object itself.

withSignature

public DatadogAgreementProperties withSignature(String signature)

Set the signature property: Terms signature.

Parameters:

signature - the signature value to set.

Returns:

the DatadogAgreementProperties object itself.

Applies to