This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/ReservationValue.h

187 lines
6.4 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{
/**
* <p>The cost associated with the Reserved Instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservationValue">AWS
* API Reference</a></p>
*/
class AWS_EC2_API ReservationValue
{
public:
ReservationValue();
ReservationValue(const Aws::Utils::Xml::XmlNode& xmlNode);
ReservationValue& 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 hourly rate of the reservation.</p>
*/
inline const Aws::String& GetHourlyPrice() const{ return m_hourlyPrice; }
/**
* <p>The hourly rate of the reservation.</p>
*/
inline bool HourlyPriceHasBeenSet() const { return m_hourlyPriceHasBeenSet; }
/**
* <p>The hourly rate of the reservation.</p>
*/
inline void SetHourlyPrice(const Aws::String& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = value; }
/**
* <p>The hourly rate of the reservation.</p>
*/
inline void SetHourlyPrice(Aws::String&& value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice = std::move(value); }
/**
* <p>The hourly rate of the reservation.</p>
*/
inline void SetHourlyPrice(const char* value) { m_hourlyPriceHasBeenSet = true; m_hourlyPrice.assign(value); }
/**
* <p>The hourly rate of the reservation.</p>
*/
inline ReservationValue& WithHourlyPrice(const Aws::String& value) { SetHourlyPrice(value); return *this;}
/**
* <p>The hourly rate of the reservation.</p>
*/
inline ReservationValue& WithHourlyPrice(Aws::String&& value) { SetHourlyPrice(std::move(value)); return *this;}
/**
* <p>The hourly rate of the reservation.</p>
*/
inline ReservationValue& WithHourlyPrice(const char* value) { SetHourlyPrice(value); return *this;}
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline const Aws::String& GetRemainingTotalValue() const{ return m_remainingTotalValue; }
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline bool RemainingTotalValueHasBeenSet() const { return m_remainingTotalValueHasBeenSet; }
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline void SetRemainingTotalValue(const Aws::String& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = value; }
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline void SetRemainingTotalValue(Aws::String&& value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue = std::move(value); }
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline void SetRemainingTotalValue(const char* value) { m_remainingTotalValueHasBeenSet = true; m_remainingTotalValue.assign(value); }
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline ReservationValue& WithRemainingTotalValue(const Aws::String& value) { SetRemainingTotalValue(value); return *this;}
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline ReservationValue& WithRemainingTotalValue(Aws::String&& value) { SetRemainingTotalValue(std::move(value)); return *this;}
/**
* <p>The balance of the total value (the sum of remainingUpfrontValue +
* hourlyPrice * number of hours remaining).</p>
*/
inline ReservationValue& WithRemainingTotalValue(const char* value) { SetRemainingTotalValue(value); return *this;}
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline const Aws::String& GetRemainingUpfrontValue() const{ return m_remainingUpfrontValue; }
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline bool RemainingUpfrontValueHasBeenSet() const { return m_remainingUpfrontValueHasBeenSet; }
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline void SetRemainingUpfrontValue(const Aws::String& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = value; }
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline void SetRemainingUpfrontValue(Aws::String&& value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue = std::move(value); }
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline void SetRemainingUpfrontValue(const char* value) { m_remainingUpfrontValueHasBeenSet = true; m_remainingUpfrontValue.assign(value); }
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline ReservationValue& WithRemainingUpfrontValue(const Aws::String& value) { SetRemainingUpfrontValue(value); return *this;}
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline ReservationValue& WithRemainingUpfrontValue(Aws::String&& value) { SetRemainingUpfrontValue(std::move(value)); return *this;}
/**
* <p>The remaining upfront cost of the reservation.</p>
*/
inline ReservationValue& WithRemainingUpfrontValue(const char* value) { SetRemainingUpfrontValue(value); return *this;}
private:
Aws::String m_hourlyPrice;
bool m_hourlyPriceHasBeenSet;
Aws::String m_remainingTotalValue;
bool m_remainingTotalValueHasBeenSet;
Aws::String m_remainingUpfrontValue;
bool m_remainingUpfrontValueHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws