AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApplicationResourceAssociation.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/ApplicationAssociatedResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/workspaces/model/AssociationState.h>
12#include <aws/workspaces/model/AssociationStateReason.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkSpaces
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_WORKSPACES_API ApplicationResourceAssociation();
42 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
50 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
51 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
52 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
53 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
55 inline ApplicationResourceAssociation& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
56 inline ApplicationResourceAssociation& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
58
60
63 inline const Aws::String& GetAssociatedResourceId() const{ return m_associatedResourceId; }
64 inline bool AssociatedResourceIdHasBeenSet() const { return m_associatedResourceIdHasBeenSet; }
65 inline void SetAssociatedResourceId(const Aws::String& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = value; }
66 inline void SetAssociatedResourceId(Aws::String&& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = std::move(value); }
67 inline void SetAssociatedResourceId(const char* value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId.assign(value); }
70 inline ApplicationResourceAssociation& WithAssociatedResourceId(const char* value) { SetAssociatedResourceId(value); return *this;}
72
74
77 inline const ApplicationAssociatedResourceType& GetAssociatedResourceType() const{ return m_associatedResourceType; }
78 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
79 inline void SetAssociatedResourceType(const ApplicationAssociatedResourceType& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = value; }
80 inline void SetAssociatedResourceType(ApplicationAssociatedResourceType&& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = std::move(value); }
84
86
89 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
90 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
91 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
92 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
93 inline ApplicationResourceAssociation& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
94 inline ApplicationResourceAssociation& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
102 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
103 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
104 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
108
110
113 inline const AssociationState& GetState() const{ return m_state; }
114 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 inline void SetState(const AssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
116 inline void SetState(AssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
117 inline ApplicationResourceAssociation& WithState(const AssociationState& value) { SetState(value); return *this;}
118 inline ApplicationResourceAssociation& WithState(AssociationState&& value) { SetState(std::move(value)); return *this;}
120
122
125 inline const AssociationStateReason& GetStateReason() const{ return m_stateReason; }
126 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
127 inline void SetStateReason(const AssociationStateReason& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
128 inline void SetStateReason(AssociationStateReason&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
130 inline ApplicationResourceAssociation& WithStateReason(AssociationStateReason&& value) { SetStateReason(std::move(value)); return *this;}
132 private:
133
134 Aws::String m_applicationId;
135 bool m_applicationIdHasBeenSet = false;
136
137 Aws::String m_associatedResourceId;
138 bool m_associatedResourceIdHasBeenSet = false;
139
140 ApplicationAssociatedResourceType m_associatedResourceType;
141 bool m_associatedResourceTypeHasBeenSet = false;
142
143 Aws::Utils::DateTime m_created;
144 bool m_createdHasBeenSet = false;
145
146 Aws::Utils::DateTime m_lastUpdatedTime;
147 bool m_lastUpdatedTimeHasBeenSet = false;
148
149 AssociationState m_state;
150 bool m_stateHasBeenSet = false;
151
152 AssociationStateReason m_stateReason;
153 bool m_stateReasonHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace WorkSpaces
158} // namespace Aws
ApplicationResourceAssociation & WithApplicationId(Aws::String &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationResourceAssociation & WithStateReason(const AssociationStateReason &value)
ApplicationResourceAssociation & WithAssociatedResourceId(const char *value)
void SetAssociatedResourceType(ApplicationAssociatedResourceType &&value)
ApplicationResourceAssociation & WithAssociatedResourceId(Aws::String &&value)
ApplicationResourceAssociation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ApplicationResourceAssociation & WithState(AssociationState &&value)
ApplicationResourceAssociation & WithCreated(Aws::Utils::DateTime &&value)
AWS_WORKSPACES_API ApplicationResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACES_API ApplicationResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
ApplicationResourceAssociation & WithAssociatedResourceId(const Aws::String &value)
ApplicationResourceAssociation & WithApplicationId(const Aws::String &value)
ApplicationResourceAssociation & WithCreated(const Aws::Utils::DateTime &value)
ApplicationResourceAssociation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ApplicationResourceAssociation & WithAssociatedResourceType(const ApplicationAssociatedResourceType &value)
ApplicationResourceAssociation & WithState(const AssociationState &value)
const ApplicationAssociatedResourceType & GetAssociatedResourceType() const
ApplicationResourceAssociation & WithStateReason(AssociationStateReason &&value)
ApplicationResourceAssociation & WithAssociatedResourceType(ApplicationAssociatedResourceType &&value)
void SetAssociatedResourceType(const ApplicationAssociatedResourceType &value)
ApplicationResourceAssociation & WithApplicationId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue