PaymentMethodInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. models. ProxyResourceWithTags - com.
azure. resourcemanager. billing. fluent. models. PaymentMethodInner
- com.
- com.
- com.
public final class PaymentMethodInner
extends ProxyResourceWithTags
A payment method.
Constructor Summary
| Constructor | Description |
|---|---|
| PaymentMethodInner() |
Creates an instance of Payment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountHolderName()
Get the account |
| String |
displayName()
Get the display |
| String |
expiration()
Get the expiration property: The expiration month and year of the payment method. |
|
Payment |
family()
Get the family property: The family of payment method. |
|
static
Payment |
fromJson(JsonReader jsonReader)
Reads an instance of Payment |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
idPropertiesId()
Get the id property: Id of payment method. |
| String |
lastFourDigits()
Get the last |
|
List<Payment |
logos()
Get the logos property: The list of logos for the payment method. |
| String |
name()
Get the name property: The name of the resource. |
| String |
paymentMethodType()
Get the payment |
|
Payment |
status()
Get the status property: Status of the payment method. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Payment |
withFamily(PaymentMethodFamily family)
Set the family property: The family of payment method. |
|
Payment |
withLogos(List<PaymentMethodLogo> logos)
Set the logos property: The list of logos for the payment method. |
|
Payment |
withStatus(PaymentMethodStatus status)
Set the status property: Status of the payment method. |
|
Payment |
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
PaymentMethodInner
public PaymentMethodInner()
Creates an instance of PaymentMethodInner 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:
displayName
public String displayName()
Get the displayName property: The display name of the payment method.
Returns:
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:
family
public PaymentMethodFamily family()
Get the family property: The family of payment method.
Returns:
fromJson
public static PaymentMethodInner fromJson(JsonReader jsonReader)
Reads an instance of PaymentMethodInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
PaymentMethodInner.id()Returns:
idPropertiesId
public String idPropertiesId()
Get the id property: Id of payment method.
Returns:
lastFourDigits
public String lastFourDigits()
Get the lastFourDigits property: Last four digits of payment method.
Returns:
logos
public List<PaymentMethodLogo> logos()
Get the logos property: The list of logos for the payment method.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
PaymentMethodInner.name()Returns:
paymentMethodType
public String paymentMethodType()
Get the paymentMethodType property: The type of payment method.
Returns:
status
public PaymentMethodStatus status()
Get the status property: Status of the payment method.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Overrides:
PaymentMethodInner.systemData()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PaymentMethodInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
PaymentMethodInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
PaymentMethodInner.validate()withFamily
public PaymentMethodInner withFamily(PaymentMethodFamily family)
Set the family property: The family of payment method.
Parameters:
Returns:
withLogos
public PaymentMethodInner withLogos(List<PaymentMethodLogo> logos)
Set the logos property: The list of logos for the payment method.
Parameters:
Returns:
withStatus
public PaymentMethodInner withStatus(PaymentMethodStatus status)
Set the status property: Status of the payment method.
Parameters:
Returns:
withTags
public PaymentMethodInner 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:
PaymentMethodInner.withTags(Map<String,String> tags)Parameters: