AWS SDK for C++  1.9.126
AWS SDK for C++
ObjectTypeField.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CustomerProfiles
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
46  inline const Aws::String& GetSource() const{ return m_source; }
47 
53  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
54 
60  inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
61 
67  inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
68 
74  inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
75 
81  inline ObjectTypeField& WithSource(const Aws::String& value) { SetSource(value); return *this;}
82 
88  inline ObjectTypeField& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
89 
95  inline ObjectTypeField& WithSource(const char* value) { SetSource(value); return *this;}
96 
97 
102  inline const Aws::String& GetTarget() const{ return m_target; }
103 
108  inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
109 
114  inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
115 
120  inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
121 
126  inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
127 
132  inline ObjectTypeField& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
133 
138  inline ObjectTypeField& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
139 
144  inline ObjectTypeField& WithTarget(const char* value) { SetTarget(value); return *this;}
145 
146 
151  inline const FieldContentType& GetContentType() const{ return m_contentType; }
152 
157  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
158 
163  inline void SetContentType(const FieldContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
164 
169  inline void SetContentType(FieldContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
170 
175  inline ObjectTypeField& WithContentType(const FieldContentType& value) { SetContentType(value); return *this;}
176 
181  inline ObjectTypeField& WithContentType(FieldContentType&& value) { SetContentType(std::move(value)); return *this;}
182 
183  private:
184 
185  Aws::String m_source;
186  bool m_sourceHasBeenSet;
187 
188  Aws::String m_target;
189  bool m_targetHasBeenSet;
190 
191  FieldContentType m_contentType;
192  bool m_contentTypeHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace CustomerProfiles
197 } // namespace Aws
Aws::CustomerProfiles::Model::ObjectTypeField::SetSource
void SetSource(const char *value)
Definition: ObjectTypeField.h:74
Aws::CustomerProfiles::Model::ObjectTypeField::ObjectTypeField
ObjectTypeField()
Aws::CustomerProfiles::Model::FieldContentType
FieldContentType
Definition: FieldContentType.h:17
Aws::CustomerProfiles::Model::ObjectTypeField::WithSource
ObjectTypeField & WithSource(const char *value)
Definition: ObjectTypeField.h:95
Aws::CustomerProfiles::Model::ObjectTypeField::operator=
ObjectTypeField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API
#define AWS_CUSTOMERPROFILES_API
Definition: CustomerProfiles_EXPORTS.h:28
Aws::CustomerProfiles::Model::ObjectTypeField::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: ObjectTypeField.h:53
Aws::CustomerProfiles::Model::ObjectTypeField::SetTarget
void SetTarget(Aws::String &&value)
Definition: ObjectTypeField.h:120
Aws::CustomerProfiles::Model::ObjectTypeField::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CustomerProfiles::Model::ObjectTypeField::WithTarget
ObjectTypeField & WithTarget(const char *value)
Definition: ObjectTypeField.h:144
Aws::CustomerProfiles::Model::ObjectTypeField::SetContentType
void SetContentType(FieldContentType &&value)
Definition: ObjectTypeField.h:169
Aws::CustomerProfiles::Model::ObjectTypeField::GetSource
const Aws::String & GetSource() const
Definition: ObjectTypeField.h:46
Aws::CustomerProfiles::Model::ObjectTypeField::SetSource
void SetSource(Aws::String &&value)
Definition: ObjectTypeField.h:67
Aws::CustomerProfiles::Model::ObjectTypeField::SetTarget
void SetTarget(const char *value)
Definition: ObjectTypeField.h:126
CustomerProfiles_EXPORTS.h
Aws::CustomerProfiles::Model::ObjectTypeField::WithSource
ObjectTypeField & WithSource(Aws::String &&value)
Definition: ObjectTypeField.h:88
Aws::CustomerProfiles::Model::ObjectTypeField::GetContentType
const FieldContentType & GetContentType() const
Definition: ObjectTypeField.h:151
FieldContentType.h
Aws::CustomerProfiles::Model::ObjectTypeField::TargetHasBeenSet
bool TargetHasBeenSet() const
Definition: ObjectTypeField.h:108
Aws::CustomerProfiles::Model::ObjectTypeField::WithTarget
ObjectTypeField & WithTarget(Aws::String &&value)
Definition: ObjectTypeField.h:138
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CustomerProfiles::Model::ObjectTypeField::WithSource
ObjectTypeField & WithSource(const Aws::String &value)
Definition: ObjectTypeField.h:81
Aws::CustomerProfiles::Model::ObjectTypeField::WithContentType
ObjectTypeField & WithContentType(const FieldContentType &value)
Definition: ObjectTypeField.h:175
Aws::CustomerProfiles::Model::ObjectTypeField::SetContentType
void SetContentType(const FieldContentType &value)
Definition: ObjectTypeField.h:163
Aws::CustomerProfiles::Model::ObjectTypeField
Definition: ObjectTypeField.h:33
Aws::CustomerProfiles::Model::ObjectTypeField::GetTarget
const Aws::String & GetTarget() const
Definition: ObjectTypeField.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::CustomerProfiles::Model::ObjectTypeField::SetTarget
void SetTarget(const Aws::String &value)
Definition: ObjectTypeField.h:114
Aws::CustomerProfiles::Model::ObjectTypeField::SetSource
void SetSource(const Aws::String &value)
Definition: ObjectTypeField.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CustomerProfiles::Model::ObjectTypeField::ObjectTypeField
ObjectTypeField(Aws::Utils::Json::JsonView jsonValue)
Aws::CustomerProfiles::Model::ObjectTypeField::WithContentType
ObjectTypeField & WithContentType(FieldContentType &&value)
Definition: ObjectTypeField.h:181
Aws::CustomerProfiles::Model::ObjectTypeField::WithTarget
ObjectTypeField & WithTarget(const Aws::String &value)
Definition: ObjectTypeField.h:132
Aws::CustomerProfiles::Model::ObjectTypeField::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: ObjectTypeField.h:157