AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetDimension.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/DimensionType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API SetDimension();
38 AWS_PINPOINT_API SetDimension(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const DimensionType& GetDimensionType() const{ return m_dimensionType; }
50 inline bool DimensionTypeHasBeenSet() const { return m_dimensionTypeHasBeenSet; }
51 inline void SetDimensionType(const DimensionType& value) { m_dimensionTypeHasBeenSet = true; m_dimensionType = value; }
52 inline void SetDimensionType(DimensionType&& value) { m_dimensionTypeHasBeenSet = true; m_dimensionType = std::move(value); }
53 inline SetDimension& WithDimensionType(const DimensionType& value) { SetDimensionType(value); return *this;}
54 inline SetDimension& WithDimensionType(DimensionType&& value) { SetDimensionType(std::move(value)); return *this;}
56
58
63 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
64 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
65 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
66 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
67 inline SetDimension& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
68 inline SetDimension& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
69 inline SetDimension& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
70 inline SetDimension& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
71 inline SetDimension& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
73 private:
74
75 DimensionType m_dimensionType;
76 bool m_dimensionTypeHasBeenSet = false;
77
79 bool m_valuesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Pinpoint
84} // namespace Aws
const DimensionType & GetDimensionType() const
void SetValues(Aws::Vector< Aws::String > &&value)
SetDimension & AddValues(Aws::String &&value)
void SetValues(const Aws::Vector< Aws::String > &value)
AWS_PINPOINT_API SetDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValues() const
SetDimension & AddValues(const char *value)
SetDimension & WithDimensionType(const DimensionType &value)
SetDimension & WithValues(const Aws::Vector< Aws::String > &value)
void SetDimensionType(DimensionType &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SetDimension & AddValues(const Aws::String &value)
AWS_PINPOINT_API SetDimension(Aws::Utils::Json::JsonView jsonValue)
SetDimension & WithDimensionType(DimensionType &&value)
SetDimension & WithValues(Aws::Vector< Aws::String > &&value)
void SetDimensionType(const DimensionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue