AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributesResource.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API AttributesResource();
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
48 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
49 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
50 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
51 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
52 inline AttributesResource& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
53 inline AttributesResource& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
54 inline AttributesResource& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
56
58
66 inline const Aws::String& GetAttributeType() const{ return m_attributeType; }
67 inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
68 inline void SetAttributeType(const Aws::String& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
69 inline void SetAttributeType(Aws::String&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
70 inline void SetAttributeType(const char* value) { m_attributeTypeHasBeenSet = true; m_attributeType.assign(value); }
71 inline AttributesResource& WithAttributeType(const Aws::String& value) { SetAttributeType(value); return *this;}
72 inline AttributesResource& WithAttributeType(Aws::String&& value) { SetAttributeType(std::move(value)); return *this;}
73 inline AttributesResource& WithAttributeType(const char* value) { SetAttributeType(value); return *this;}
75
77
81 inline const Aws::Vector<Aws::String>& GetAttributes() const{ return m_attributes; }
82 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
83 inline void SetAttributes(const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
84 inline void SetAttributes(Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
85 inline AttributesResource& WithAttributes(const Aws::Vector<Aws::String>& value) { SetAttributes(value); return *this;}
86 inline AttributesResource& WithAttributes(Aws::Vector<Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
87 inline AttributesResource& AddAttributes(const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
88 inline AttributesResource& AddAttributes(Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
89 inline AttributesResource& AddAttributes(const char* value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
91 private:
92
93 Aws::String m_applicationId;
94 bool m_applicationIdHasBeenSet = false;
95
96 Aws::String m_attributeType;
97 bool m_attributeTypeHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_attributes;
100 bool m_attributesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Pinpoint
105} // namespace Aws
AWS_PINPOINT_API AttributesResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApplicationId(const Aws::String &value)
AttributesResource & WithApplicationId(const Aws::String &value)
AttributesResource & WithApplicationId(Aws::String &&value)
void SetAttributes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAttributes() const
AttributesResource & WithAttributes(const Aws::Vector< Aws::String > &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AttributesResource & AddAttributes(const Aws::String &value)
AttributesResource & AddAttributes(Aws::String &&value)
AttributesResource & WithApplicationId(const char *value)
AttributesResource & WithAttributeType(const char *value)
const Aws::String & GetApplicationId() const
AttributesResource & WithAttributeType(Aws::String &&value)
AWS_PINPOINT_API AttributesResource(Aws::Utils::Json::JsonView jsonValue)
AttributesResource & AddAttributes(const char *value)
void SetAttributeType(const Aws::String &value)
AttributesResource & WithAttributes(Aws::Vector< Aws::String > &&value)
const Aws::String & GetAttributeType() const
AttributesResource & WithAttributeType(const Aws::String &value)
void SetAttributes(const Aws::Vector< Aws::String > &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