AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PhoneNumberAssociation.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/PhoneNumberAssociationName.h>
10#include <aws/core/utils/DateTime.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 Chime
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CHIME_API PhoneNumberAssociation() = default;
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetValue() const { return m_value; }
49 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
50 template<typename ValueT = Aws::String>
51 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
52 template<typename ValueT = Aws::String>
53 PhoneNumberAssociation& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
55
57
61 inline PhoneNumberAssociationName GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(PhoneNumberAssociationName value) { m_nameHasBeenSet = true; m_name = value; }
64 inline PhoneNumberAssociation& WithName(PhoneNumberAssociationName value) { SetName(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetAssociatedTimestamp() const { return m_associatedTimestamp; }
72 inline bool AssociatedTimestampHasBeenSet() const { return m_associatedTimestampHasBeenSet; }
73 template<typename AssociatedTimestampT = Aws::Utils::DateTime>
74 void SetAssociatedTimestamp(AssociatedTimestampT&& value) { m_associatedTimestampHasBeenSet = true; m_associatedTimestamp = std::forward<AssociatedTimestampT>(value); }
75 template<typename AssociatedTimestampT = Aws::Utils::DateTime>
76 PhoneNumberAssociation& WithAssociatedTimestamp(AssociatedTimestampT&& value) { SetAssociatedTimestamp(std::forward<AssociatedTimestampT>(value)); return *this;}
78 private:
79
80 Aws::String m_value;
81 bool m_valueHasBeenSet = false;
82
84 bool m_nameHasBeenSet = false;
85
86 Aws::Utils::DateTime m_associatedTimestamp{};
87 bool m_associatedTimestampHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Chime
92} // 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