PaymentMethodLinkInner Class

public final class PaymentMethodLinkInner
extends ProxyResourceWithTags

A payment method link.

Constructor Summary

Constructor Description
PaymentMethodLinkInner()

Creates an instance of PaymentMethodLinkInner class.

Method Summary

Modifier and Type Method and Description
String accountHolderName()

Get the accountHolderName property: The account holder name for the payment method.

String displayName()

Get the displayName property: The display name of the payment method.

String expiration()

Get the expiration property: The expiration month and year of the payment method.

PaymentMethodFamily family()

Get the family property: The family of payment method.

static PaymentMethodLinkInner fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodLinkInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String lastFourDigits()

Get the lastFourDigits property: Last four digits of payment method.

List<PaymentMethodLogo> logos()

Get the logos property: The list of logos for the payment method.

String name()

Get the name property: The name of the resource.

PaymentMethodProperties paymentMethod()

Get the paymentMethod property: Projection of a payment method.

String paymentMethodId()

Get the paymentMethodId property: Id of payment method.

String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

PaymentMethodStatus status()

Get the status property: Status of the payment method.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PaymentMethodLinkInner withPaymentMethod(PaymentMethodProperties paymentMethod)

Set the paymentMethod property: Projection of a payment method.

PaymentMethodLinkInner withPaymentMethodId(String paymentMethodId)

Set the paymentMethodId property: Id of payment method.

PaymentMethodLinkInner withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource.

Methods inherited from ProxyResourceWithTags

Methods inherited from java.lang.Object

Constructor Details

PaymentMethodLinkInner

public PaymentMethodLinkInner()

Creates an instance of PaymentMethodLinkInner class.

Method Details

accountHolderName

public String accountHolderName()

Get the accountHolderName property: The account holder name for the payment method. This is only supported for payment methods with family CreditCard.

Returns:

the accountHolderName value.

displayName

public String displayName()

Get the displayName property: The display name of the payment method.

Returns:

the displayName value.

expiration

public String expiration()

Get the expiration property: The expiration month and year of the payment method. This is only supported for payment methods with family CreditCard.

Returns:

the expiration value.

family

public PaymentMethodFamily family()

Get the family property: The family of payment method.

Returns:

the family value.

fromJson

public static PaymentMethodLinkInner fromJson(JsonReader jsonReader)

Reads an instance of PaymentMethodLinkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PaymentMethodLinkInner 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: Fully qualified resource Id for the resource.

Overrides:

PaymentMethodLinkInner.id()

Returns:

the id value.

lastFourDigits

public String lastFourDigits()

Get the lastFourDigits property: Last four digits of payment method.

Returns:

the lastFourDigits value.

logos

public List<PaymentMethodLogo> logos()

Get the logos property: The list of logos for the payment method.

Returns:

the logos value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PaymentMethodLinkInner.name()

Returns:

the name value.

paymentMethod

public PaymentMethodProperties paymentMethod()

Get the paymentMethod property: Projection of a payment method. Will not be returned in this or future versions.

Returns:

the paymentMethod value.

paymentMethodId

public String paymentMethodId()

Get the paymentMethodId property: Id of payment method. Example: /providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0.

Returns:

the paymentMethodId value.

paymentMethodType

public String paymentMethodType()

Get the paymentMethodType property: The type of payment method.

Returns:

the paymentMethodType value.

status

public PaymentMethodStatus status()

Get the status property: Status of the payment method.

Returns:

the status value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

PaymentMethodLinkInner.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PaymentMethodLinkInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PaymentMethodLinkInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

PaymentMethodLinkInner.validate()

withPaymentMethod

public PaymentMethodLinkInner withPaymentMethod(PaymentMethodProperties paymentMethod)

Set the paymentMethod property: Projection of a payment method. Will not be returned in this or future versions.

Parameters:

paymentMethod - the paymentMethod value to set.

Returns:

the PaymentMethodLinkInner object itself.

withPaymentMethodId

public PaymentMethodLinkInner withPaymentMethodId(String paymentMethodId)

Set the paymentMethodId property: Id of payment method. Example: /providers/Microsoft.Billing/paymentMethods/ABCDABCDABC0.

Parameters:

paymentMethodId - the paymentMethodId value to set.

Returns:

the PaymentMethodLinkInner object itself.

withTags

public PaymentMethodLinkInner withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Overrides:

PaymentMethodLinkInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to