AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Photo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IdentityStore {
20namespace Model {
21
29class Photo {
30 public:
31 AWS_IDENTITYSTORE_API Photo() = default;
32 AWS_IDENTITYSTORE_API Photo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IDENTITYSTORE_API Photo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::String>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::String>
49 Photo& WithValue(ValueT&& value) {
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
68 Photo& WithType(TypeT&& value) {
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetDisplay() const { return m_display; }
80 inline bool DisplayHasBeenSet() const { return m_displayHasBeenSet; }
81 template <typename DisplayT = Aws::String>
82 void SetDisplay(DisplayT&& value) {
83 m_displayHasBeenSet = true;
84 m_display = std::forward<DisplayT>(value);
85 }
86 template <typename DisplayT = Aws::String>
87 Photo& WithDisplay(DisplayT&& value) {
88 SetDisplay(std::forward<DisplayT>(value));
89 return *this;
90 }
92
94
98 inline bool GetPrimary() const { return m_primary; }
99 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
100 inline void SetPrimary(bool value) {
101 m_primaryHasBeenSet = true;
102 m_primary = value;
103 }
104 inline Photo& WithPrimary(bool value) {
105 SetPrimary(value);
106 return *this;
107 }
109 private:
110 Aws::String m_value;
111
112 Aws::String m_type;
113
114 Aws::String m_display;
115
116 bool m_primary{false};
117 bool m_valueHasBeenSet = false;
118 bool m_typeHasBeenSet = false;
119 bool m_displayHasBeenSet = false;
120 bool m_primaryHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace IdentityStore
125} // namespace Aws
const Aws::String & GetDisplay() const
Definition Photo.h:79
AWS_IDENTITYSTORE_API Photo(Aws::Utils::Json::JsonView jsonValue)
bool DisplayHasBeenSet() const
Definition Photo.h:80
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
bool PrimaryHasBeenSet() const
Definition Photo.h:99
const Aws::String & GetValue() const
Definition Photo.h:41
void SetValue(ValueT &&value)
Definition Photo.h:44
AWS_IDENTITYSTORE_API Photo & operator=(Aws::Utils::Json::JsonView jsonValue)
Photo & WithDisplay(DisplayT &&value)
Definition Photo.h:87
void SetType(TypeT &&value)
Definition Photo.h:63
Photo & WithType(TypeT &&value)
Definition Photo.h:68
void SetPrimary(bool value)
Definition Photo.h:100
AWS_IDENTITYSTORE_API Photo()=default
void SetDisplay(DisplayT &&value)
Definition Photo.h:82
const Aws::String & GetType() const
Definition Photo.h:60
Photo & WithValue(ValueT &&value)
Definition Photo.h:49
Photo & WithPrimary(bool value)
Definition Photo.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue