Class LongTermPricingListEntry
- java.lang.Object
-
- software.amazon.awssdk.services.snowball.model.LongTermPricingListEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LongTermPricingListEntry.Builder,LongTermPricingListEntry>
@Generated("software.amazon.awssdk:codegen") public final class LongTermPricingListEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LongTermPricingListEntry.Builder,LongTermPricingListEntry>
Each
LongTermPricingListEntryobject contains information about a long-term pricing type.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLongTermPricingListEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LongTermPricingListEntry.Builderbuilder()StringcurrentActiveJob()The current active jobs on the device the long-term pricing type.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasJobIds()For responses, this returns true if the service returned a value for the JobIds property.BooleanisLongTermPricingAutoRenew()If set totrue, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.List<String>jobIds()The IDs of the jobs that are associated with a long-term pricing type.InstantlongTermPricingEndDate()The end date the long-term pricing contract.StringlongTermPricingId()The ID of the long-term pricing type for the device.InstantlongTermPricingStartDate()The start date of the long-term pricing contract.StringlongTermPricingStatus()The status of the long-term pricing type.LongTermPricingTypelongTermPricingType()The type of long-term pricing that was selected for the device.StringlongTermPricingTypeAsString()The type of long-term pricing that was selected for the device.StringreplacementJob()A new device that replaces a device that is ordered with long-term pricing.List<SdkField<?>>sdkFields()static Class<? extends LongTermPricingListEntry.Builder>serializableBuilderClass()SnowballTypesnowballType()The type of Snow Family devices associated with this long-term pricing job.StringsnowballTypeAsString()The type of Snow Family devices associated with this long-term pricing job.LongTermPricingListEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
longTermPricingId
public final String longTermPricingId()
The ID of the long-term pricing type for the device.
- Returns:
- The ID of the long-term pricing type for the device.
-
longTermPricingEndDate
public final Instant longTermPricingEndDate()
The end date the long-term pricing contract.
- Returns:
- The end date the long-term pricing contract.
-
longTermPricingStartDate
public final Instant longTermPricingStartDate()
The start date of the long-term pricing contract.
- Returns:
- The start date of the long-term pricing contract.
-
longTermPricingType
public final LongTermPricingType longTermPricingType()
The type of long-term pricing that was selected for the device.
If the service returns an enum value that is not available in the current SDK version,
longTermPricingTypewill returnLongTermPricingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlongTermPricingTypeAsString().- Returns:
- The type of long-term pricing that was selected for the device.
- See Also:
LongTermPricingType
-
longTermPricingTypeAsString
public final String longTermPricingTypeAsString()
The type of long-term pricing that was selected for the device.
If the service returns an enum value that is not available in the current SDK version,
longTermPricingTypewill returnLongTermPricingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlongTermPricingTypeAsString().- Returns:
- The type of long-term pricing that was selected for the device.
- See Also:
LongTermPricingType
-
currentActiveJob
public final String currentActiveJob()
The current active jobs on the device the long-term pricing type.
- Returns:
- The current active jobs on the device the long-term pricing type.
-
replacementJob
public final String replacementJob()
A new device that replaces a device that is ordered with long-term pricing.
- Returns:
- A new device that replaces a device that is ordered with long-term pricing.
-
isLongTermPricingAutoRenew
public final Boolean isLongTermPricingAutoRenew()
If set to
true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.- Returns:
- If set to
true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
-
longTermPricingStatus
public final String longTermPricingStatus()
The status of the long-term pricing type.
- Returns:
- The status of the long-term pricing type.
-
snowballType
public final SnowballType snowballType()
The type of Snow Family devices associated with this long-term pricing job.
If the service returns an enum value that is not available in the current SDK version,
snowballTypewill returnSnowballType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsnowballTypeAsString().- Returns:
- The type of Snow Family devices associated with this long-term pricing job.
- See Also:
SnowballType
-
snowballTypeAsString
public final String snowballTypeAsString()
The type of Snow Family devices associated with this long-term pricing job.
If the service returns an enum value that is not available in the current SDK version,
snowballTypewill returnSnowballType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsnowballTypeAsString().- Returns:
- The type of Snow Family devices associated with this long-term pricing job.
- See Also:
SnowballType
-
hasJobIds
public final boolean hasJobIds()
For responses, this returns true if the service returned a value for the JobIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
jobIds
public final List<String> jobIds()
The IDs of the jobs that are associated with a long-term pricing type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasJobIds()method.- Returns:
- The IDs of the jobs that are associated with a long-term pricing type.
-
toBuilder
public LongTermPricingListEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LongTermPricingListEntry.Builder,LongTermPricingListEntry>
-
builder
public static LongTermPricingListEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends LongTermPricingListEntry.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-