AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
51 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
52 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
53 inline PhoneNumberAssociation& WithValue(const Aws::String& value) { SetValue(value); return *this;}
54 inline PhoneNumberAssociation& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
55 inline PhoneNumberAssociation& WithValue(const char* value) { SetValue(value); return *this;}
57
59
63 inline const PhoneNumberAssociationName& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const PhoneNumberAssociationName& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(PhoneNumberAssociationName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline PhoneNumberAssociation& WithName(const PhoneNumberAssociationName& value) { SetName(value); return *this;}
68 inline PhoneNumberAssociation& WithName(PhoneNumberAssociationName&& value) { SetName(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetAssociatedTimestamp() const{ return m_associatedTimestamp; }
76 inline bool AssociatedTimestampHasBeenSet() const { return m_associatedTimestampHasBeenSet; }
77 inline void SetAssociatedTimestamp(const Aws::Utils::DateTime& value) { m_associatedTimestampHasBeenSet = true; m_associatedTimestamp = value; }
78 inline void SetAssociatedTimestamp(Aws::Utils::DateTime&& value) { m_associatedTimestampHasBeenSet = true; m_associatedTimestamp = std::move(value); }
82 private:
83
84 Aws::String m_value;
85 bool m_valueHasBeenSet = false;
86
88 bool m_nameHasBeenSet = false;
89
90 Aws::Utils::DateTime m_associatedTimestamp;
91 bool m_associatedTimestampHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Chime
96} // namespace Aws
AWS_CHIME_API PhoneNumberAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberAssociation & WithValue(const char *value)
PhoneNumberAssociation & WithName(const PhoneNumberAssociationName &value)
void SetAssociatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumberAssociation & WithName(PhoneNumberAssociationName &&value)
PhoneNumberAssociation & WithValue(Aws::String &&value)
const PhoneNumberAssociationName & GetName() const
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociatedTimestamp(const Aws::Utils::DateTime &value)
PhoneNumberAssociation & WithValue(const Aws::String &value)
PhoneNumberAssociation & WithAssociatedTimestamp(const Aws::Utils::DateTime &value)
void SetName(const PhoneNumberAssociationName &value)
void SetName(PhoneNumberAssociationName &&value)
PhoneNumberAssociation & WithAssociatedTimestamp(Aws::Utils::DateTime &&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