@Generated(value="software.amazon.awssdk:codegen") public final class CreateGiftCardRequest extends AgcodRequest implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<CreateGiftCardRequest.Builder,CreateGiftCardRequest>
Represents the input of a CreateGiftCardRequest operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateGiftCardRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateGiftCardRequest.Builder |
builder() |
String |
creationRequestId()
A unique identifier for every CreateGiftCard call that results in the creation of a GC.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
externalReference()
You can use the externalReference field to pass your own reference identifier as a string when making gift code
requests (up to 100 Unicode characters).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
partnerId()
A unique identifier (CASE SENSITIVE, 1st letter is capitalized and the next four are lower case) provided by the
Amazon GC team.
|
ProductType |
productType()
The ProductType field is required for the creation of an Amazon Product Voucher Claim Code.
|
String |
productTypeAsString()
The ProductType field is required for the creation of an Amazon Product Voucher Claim Code.
|
String |
programId()
The programID is an approved identifier provided by Amazon through a submission process.
|
List<software.amazon.awssdk.core.SdkField<?>> |
sdkFields() |
static Class<? extends CreateGiftCardRequest.Builder> |
serializableBuilderClass() |
CreateGiftCardRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AgcodValue |
value()
Returns the value of the Value property for this object.
|
public String creationRequestId()
A unique identifier for every CreateGiftCard call that results in the creation of a GC. The partner must generate a new value for every Create request (except for retries) To keep this as the globally unique transaction identifier, the partner needs to:
public String partnerId()
A unique identifier (CASE SENSITIVE, 1st letter is capitalized and the next four are lower case) provided by the Amazon GC team. This value is part of the Payload of every AGCOD Gateway request.
public AgcodValue value()
public String programId()
The programID is an approved identifier provided by Amazon through a submission process. The programID is alphanumeric and can be up to 100 characters in length.
public ProductType productType()
The ProductType field is required for the creation of an Amazon Product Voucher Claim Code. Only authorized partners can create Product Vouchers. This attribute is alpha-numeric with a max length of 50 characters.
If the service returns an enum value that is not available in the current SDK version, productType will
return ProductType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
productTypeAsString().
ProductTypepublic String productTypeAsString()
The ProductType field is required for the creation of an Amazon Product Voucher Claim Code. Only authorized partners can create Product Vouchers. This attribute is alpha-numeric with a max length of 50 characters.
If the service returns an enum value that is not available in the current SDK version, productType will
return ProductType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
productTypeAsString().
ProductTypepublic String externalReference()
You can use the externalReference field to pass your own reference identifier as a string when making gift code requests (up to 100 Unicode characters).
public CreateGiftCardRequest.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<CreateGiftCardRequest.Builder,CreateGiftCardRequest>toBuilder in class AgcodRequestpublic static CreateGiftCardRequest.Builder builder()
public static Class<? extends CreateGiftCardRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class software.amazon.awssdk.awscore.AwsRequestpublic boolean equals(Object obj)
equals in class software.amazon.awssdk.awscore.AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface software.amazon.awssdk.core.SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class software.amazon.awssdk.core.SdkRequestpublic List<software.amazon.awssdk.core.SdkField<?>> sdkFields()
sdkFields in interface software.amazon.awssdk.core.SdkPojoCopyright © 2020. All rights reserved.