AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
ContextStoreAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/ContextStoreAssociationState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager {
22namespace Model {
23
31 public:
32 AWS_NETWORKMANAGER_API ContextStoreAssociation() = default;
33 AWS_NETWORKMANAGER_API ContextStoreAssociation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetContextStoreId() const { return m_contextStoreId; }
42 inline bool ContextStoreIdHasBeenSet() const { return m_contextStoreIdHasBeenSet; }
43 template <typename ContextStoreIdT = Aws::String>
44 void SetContextStoreId(ContextStoreIdT&& value) {
45 m_contextStoreIdHasBeenSet = true;
46 m_contextStoreId = std::forward<ContextStoreIdT>(value);
47 }
48 template <typename ContextStoreIdT = Aws::String>
49 ContextStoreAssociation& WithContextStoreId(ContextStoreIdT&& value) {
50 SetContextStoreId(std::forward<ContextStoreIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTransitGatewayArn() const { return m_transitGatewayArn; }
60 inline bool TransitGatewayArnHasBeenSet() const { return m_transitGatewayArnHasBeenSet; }
61 template <typename TransitGatewayArnT = Aws::String>
62 void SetTransitGatewayArn(TransitGatewayArnT&& value) {
63 m_transitGatewayArnHasBeenSet = true;
64 m_transitGatewayArn = std::forward<TransitGatewayArnT>(value);
65 }
66 template <typename TransitGatewayArnT = Aws::String>
67 ContextStoreAssociation& WithTransitGatewayArn(TransitGatewayArnT&& value) {
68 SetTransitGatewayArn(std::forward<TransitGatewayArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
101 inline ContextStoreAssociationState GetState() const { return m_state; }
102 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 m_stateHasBeenSet = true;
105 m_state = value;
106 }
108 SetState(value);
109 return *this;
110 }
112 private:
113 Aws::String m_contextStoreId;
114
115 Aws::String m_transitGatewayArn;
116
117 Aws::Utils::DateTime m_createdAt{};
118
120 bool m_contextStoreIdHasBeenSet = false;
121 bool m_transitGatewayArnHasBeenSet = false;
122 bool m_createdAtHasBeenSet = false;
123 bool m_stateHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace NetworkManager
128} // namespace Aws
AWS_NETWORKMANAGER_API ContextStoreAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API ContextStoreAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ContextStoreAssociation & WithCreatedAt(CreatedAtT &&value)
AWS_NETWORKMANAGER_API ContextStoreAssociation()=default
void SetState(ContextStoreAssociationState value)
ContextStoreAssociation & WithContextStoreId(ContextStoreIdT &&value)
ContextStoreAssociation & WithTransitGatewayArn(TransitGatewayArnT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ContextStoreAssociation & WithState(ContextStoreAssociationState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue