Class SpotDatafeedSubscription
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.SpotDatafeedSubscription
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
@Generated("software.amazon.awssdk:codegen") public final class SpotDatafeedSubscription extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
Describes the data feed for a Spot Instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSpotDatafeedSubscription.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbucket()The name of the Amazon S3 bucket where the Spot Instance data feed is located.static SpotDatafeedSubscription.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)SpotInstanceStateFaultfault()The fault codes for the Spot Instance request, if any.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringownerId()The Amazon Web Services account ID of the account.Stringprefix()The prefix for the data feed files.List<SdkField<?>>sdkFields()static Class<? extends SpotDatafeedSubscription.Builder>serializableBuilderClass()DatafeedSubscriptionStatestate()The state of the Spot Instance data feed subscription.StringstateAsString()The state of the Spot Instance data feed subscription.SpotDatafeedSubscription.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
-
bucket
public final String bucket()
The name of the Amazon S3 bucket where the Spot Instance data feed is located.
- Returns:
- The name of the Amazon S3 bucket where the Spot Instance data feed is located.
-
fault
public final SpotInstanceStateFault fault()
The fault codes for the Spot Instance request, if any.
- Returns:
- The fault codes for the Spot Instance request, if any.
-
ownerId
public final String ownerId()
The Amazon Web Services account ID of the account.
- Returns:
- The Amazon Web Services account ID of the account.
-
prefix
public final String prefix()
The prefix for the data feed files.
- Returns:
- The prefix for the data feed files.
-
state
public final DatafeedSubscriptionState state()
The state of the Spot Instance data feed subscription.
If the service returns an enum value that is not available in the current SDK version,
statewill returnDatafeedSubscriptionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the Spot Instance data feed subscription.
- See Also:
DatafeedSubscriptionState
-
stateAsString
public final String stateAsString()
The state of the Spot Instance data feed subscription.
If the service returns an enum value that is not available in the current SDK version,
statewill returnDatafeedSubscriptionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the Spot Instance data feed subscription.
- See Also:
DatafeedSubscriptionState
-
toBuilder
public SpotDatafeedSubscription.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotDatafeedSubscription.Builder,SpotDatafeedSubscription>
-
builder
public static SpotDatafeedSubscription.Builder builder()
-
serializableBuilderClass
public static Class<? extends SpotDatafeedSubscription.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.
-
-