91 lines
2.5 KiB
C++
91 lines
2.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/pricing/Pricing_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Pricing
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The values of a given attribute, such as <code>Throughput Optimized
|
|
* HDD</code> or <code>Provisioned IOPS</code> for the <code>Amazon EC2</code>
|
|
* <code>volumeType</code> attribute.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/AttributeValue">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_PRICING_API AttributeValue
|
|
{
|
|
public:
|
|
AttributeValue();
|
|
AttributeValue(Aws::Utils::Json::JsonView jsonValue);
|
|
AttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetValue() const{ return m_value; }
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline AttributeValue& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline AttributeValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
*/
|
|
inline AttributeValue& WithValue(const char* value) { SetValue(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_value;
|
|
bool m_valueHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Pricing
|
|
} // namespace Aws
|