/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CostExplorer
{
namespace Model
{
/**
* The metadata of a specific type that you can use to filter and group your
* results. You can use GetDimensionValues
to find specific
* values.
See Also:
AWS
* API Reference
*/
class DimensionValuesWithAttributes
{
public:
AWS_COSTEXPLORER_API DimensionValuesWithAttributes();
AWS_COSTEXPLORER_API DimensionValuesWithAttributes(Aws::Utils::Json::JsonView jsonValue);
AWS_COSTEXPLORER_API DimensionValuesWithAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The value of a dimension with a specific attribute.
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* The value of a dimension with a specific attribute.
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* The value of a dimension with a specific attribute.
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* The value of a dimension with a specific attribute.
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* The value of a dimension with a specific attribute.
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* The value of a dimension with a specific attribute.
*/
inline DimensionValuesWithAttributes& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* The value of a dimension with a specific attribute.
*/
inline DimensionValuesWithAttributes& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* The value of a dimension with a specific attribute.
*/
inline DimensionValuesWithAttributes& WithValue(const char* value) { SetValue(value); return *this;}
/**
* The attribute that applies to a specific Dimension
.
*/
inline const Aws::Map& GetAttributes() const{ return m_attributes; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;}
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;}
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* The attribute that applies to a specific Dimension
.
*/
inline DimensionValuesWithAttributes& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_value;
bool m_valueHasBeenSet = false;
Aws::Map m_attributes;
bool m_attributesHasBeenSet = false;
};
} // namespace Model
} // namespace CostExplorer
} // namespace Aws