/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the data feed for a Spot Instance.

See Also:

AWS * API Reference

*/ class SpotDatafeedSubscription { public: AWS_EC2_API SpotDatafeedSubscription(); AWS_EC2_API SpotDatafeedSubscription(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API SpotDatafeedSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline SpotDatafeedSubscription& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline SpotDatafeedSubscription& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket where the Spot Instance data feed is * located.

*/ inline SpotDatafeedSubscription& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The fault codes for the Spot Instance request, if any.

*/ inline const SpotInstanceStateFault& GetFault() const{ return m_fault; } /** *

The fault codes for the Spot Instance request, if any.

*/ inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; } /** *

The fault codes for the Spot Instance request, if any.

*/ inline void SetFault(const SpotInstanceStateFault& value) { m_faultHasBeenSet = true; m_fault = value; } /** *

The fault codes for the Spot Instance request, if any.

*/ inline void SetFault(SpotInstanceStateFault&& value) { m_faultHasBeenSet = true; m_fault = std::move(value); } /** *

The fault codes for the Spot Instance request, if any.

*/ inline SpotDatafeedSubscription& WithFault(const SpotInstanceStateFault& value) { SetFault(value); return *this;} /** *

The fault codes for the Spot Instance request, if any.

*/ inline SpotDatafeedSubscription& WithFault(SpotInstanceStateFault&& value) { SetFault(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the account.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The Amazon Web Services account ID of the account.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The Amazon Web Services account ID of the account.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The Amazon Web Services account ID of the account.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The Amazon Web Services account ID of the account.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The Amazon Web Services account ID of the account.

*/ inline SpotDatafeedSubscription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The Amazon Web Services account ID of the account.

*/ inline SpotDatafeedSubscription& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the account.

*/ inline SpotDatafeedSubscription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The prefix for the data feed files.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The prefix for the data feed files.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The prefix for the data feed files.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The prefix for the data feed files.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The prefix for the data feed files.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The prefix for the data feed files.

*/ inline SpotDatafeedSubscription& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The prefix for the data feed files.

*/ inline SpotDatafeedSubscription& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The prefix for the data feed files.

*/ inline SpotDatafeedSubscription& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

The state of the Spot Instance data feed subscription.

*/ inline const DatafeedSubscriptionState& GetState() const{ return m_state; } /** *

The state of the Spot Instance data feed subscription.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the Spot Instance data feed subscription.

*/ inline void SetState(const DatafeedSubscriptionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the Spot Instance data feed subscription.

*/ inline void SetState(DatafeedSubscriptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the Spot Instance data feed subscription.

*/ inline SpotDatafeedSubscription& WithState(const DatafeedSubscriptionState& value) { SetState(value); return *this;} /** *

The state of the Spot Instance data feed subscription.

*/ inline SpotDatafeedSubscription& WithState(DatafeedSubscriptionState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; SpotInstanceStateFault m_fault; bool m_faultHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; DatafeedSubscriptionState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws