255 lines
8.2 KiB
C++
255 lines
8.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ec2/EC2_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ec2/model/InstanceType.h>
|
|
#include <aws/ec2/model/RIProductDescription.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace EC2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes the maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_EC2_API SpotPrice
|
|
{
|
|
public:
|
|
SpotPrice();
|
|
SpotPrice(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
SpotPrice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline SpotPrice& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline SpotPrice& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Availability Zone.</p>
|
|
*/
|
|
inline SpotPrice& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline SpotPrice& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The instance type.</p>
|
|
*/
|
|
inline SpotPrice& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline const RIProductDescription& GetProductDescription() const{ return m_productDescription; }
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline void SetProductDescription(const RIProductDescription& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline void SetProductDescription(RIProductDescription&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline SpotPrice& WithProductDescription(const RIProductDescription& value) { SetProductDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A general description of the AMI.</p>
|
|
*/
|
|
inline SpotPrice& WithProductDescription(RIProductDescription&& value) { SetProductDescription(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline const Aws::String& GetSpotPrice() const{ return m_spotPrice; }
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline bool SpotPriceHasBeenSet() const { return m_spotPriceHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline void SetSpotPrice(const Aws::String& value) { m_spotPriceHasBeenSet = true; m_spotPrice = value; }
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline void SetSpotPrice(Aws::String&& value) { m_spotPriceHasBeenSet = true; m_spotPrice = std::move(value); }
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline void SetSpotPrice(const char* value) { m_spotPriceHasBeenSet = true; m_spotPrice.assign(value); }
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline SpotPrice& WithSpotPrice(const Aws::String& value) { SetSpotPrice(value); return *this;}
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline SpotPrice& WithSpotPrice(Aws::String&& value) { SetSpotPrice(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The maximum price per hour that you are willing to pay for a Spot
|
|
* Instance.</p>
|
|
*/
|
|
inline SpotPrice& WithSpotPrice(const char* value) { SetSpotPrice(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline SpotPrice& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time the request was created, in UTC format (for example,
|
|
* <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
|
|
*/
|
|
inline SpotPrice& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_availabilityZone;
|
|
bool m_availabilityZoneHasBeenSet;
|
|
|
|
InstanceType m_instanceType;
|
|
bool m_instanceTypeHasBeenSet;
|
|
|
|
RIProductDescription m_productDescription;
|
|
bool m_productDescriptionHasBeenSet;
|
|
|
|
Aws::String m_spotPrice;
|
|
bool m_spotPriceHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_timestamp;
|
|
bool m_timestampHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EC2
|
|
} // namespace Aws
|