AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PhoneNumberAssociation.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/PhoneNumberAssociationName.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Chime {
22namespace Model {
23
32 public:
33 AWS_CHIME_API PhoneNumberAssociation() = default;
36 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetValue() const { return m_value; }
43 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
44 template <typename ValueT = Aws::String>
45 void SetValue(ValueT&& value) {
46 m_valueHasBeenSet = true;
47 m_value = std::forward<ValueT>(value);
48 }
49 template <typename ValueT = Aws::String>
51 SetValue(std::forward<ValueT>(value));
52 return *this;
53 }
55
57
61 inline PhoneNumberAssociationName GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 m_nameHasBeenSet = true;
65 m_name = value;
66 }
68 SetName(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetAssociatedTimestamp() const { return m_associatedTimestamp; }
78 inline bool AssociatedTimestampHasBeenSet() const { return m_associatedTimestampHasBeenSet; }
79 template <typename AssociatedTimestampT = Aws::Utils::DateTime>
80 void SetAssociatedTimestamp(AssociatedTimestampT&& value) {
81 m_associatedTimestampHasBeenSet = true;
82 m_associatedTimestamp = std::forward<AssociatedTimestampT>(value);
83 }
84 template <typename AssociatedTimestampT = Aws::Utils::DateTime>
85 PhoneNumberAssociation& WithAssociatedTimestamp(AssociatedTimestampT&& value) {
86 SetAssociatedTimestamp(std::forward<AssociatedTimestampT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_value;
92
94
95 Aws::Utils::DateTime m_associatedTimestamp{};
96 bool m_valueHasBeenSet = false;
97 bool m_nameHasBeenSet = false;
98 bool m_associatedTimestampHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Chime
103} // namespace Aws
void SetName(PhoneNumberAssociationName value)
AWS_CHIME_API PhoneNumberAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberAssociation & WithValue(ValueT &&value)
PhoneNumberAssociationName GetName() const
PhoneNumberAssociation & WithAssociatedTimestamp(AssociatedTimestampT &&value)
AWS_CHIME_API PhoneNumberAssociation()=default
void SetAssociatedTimestamp(AssociatedTimestampT &&value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
PhoneNumberAssociation & WithName(PhoneNumberAssociationName value)
const Aws::Utils::DateTime & GetAssociatedTimestamp() const
AWS_CHIME_API PhoneNumberAssociation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue