AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageResourceAssociation.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/ImageAssociatedResourceType.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 ImageResourceAssociation();
42 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAssociatedResourceId() const{ return m_associatedResourceId; }
50 inline bool AssociatedResourceIdHasBeenSet() const { return m_associatedResourceIdHasBeenSet; }
51 inline void SetAssociatedResourceId(const Aws::String& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = value; }
52 inline void SetAssociatedResourceId(Aws::String&& value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId = std::move(value); }
53 inline void SetAssociatedResourceId(const char* value) { m_associatedResourceIdHasBeenSet = true; m_associatedResourceId.assign(value); }
55 inline ImageResourceAssociation& WithAssociatedResourceId(Aws::String&& value) { SetAssociatedResourceId(std::move(value)); return *this;}
56 inline ImageResourceAssociation& WithAssociatedResourceId(const char* value) { SetAssociatedResourceId(value); return *this;}
58
60
63 inline const ImageAssociatedResourceType& GetAssociatedResourceType() const{ return m_associatedResourceType; }
64 inline bool AssociatedResourceTypeHasBeenSet() const { return m_associatedResourceTypeHasBeenSet; }
65 inline void SetAssociatedResourceType(const ImageAssociatedResourceType& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = value; }
66 inline void SetAssociatedResourceType(ImageAssociatedResourceType&& value) { m_associatedResourceTypeHasBeenSet = true; m_associatedResourceType = std::move(value); }
70
72
75 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
76 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
77 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
78 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
79 inline ImageResourceAssociation& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
80 inline ImageResourceAssociation& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
88 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
89 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
90 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
92 inline ImageResourceAssociation& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetImageId() const{ return m_imageId; }
100 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
101 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
102 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
103 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
104 inline ImageResourceAssociation& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
105 inline ImageResourceAssociation& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
106 inline ImageResourceAssociation& WithImageId(const char* value) { SetImageId(value); return *this;}
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 ImageResourceAssociation& WithState(const AssociationState& value) { SetState(value); return *this;}
118 inline ImageResourceAssociation& 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 ImageResourceAssociation& WithStateReason(AssociationStateReason&& value) { SetStateReason(std::move(value)); return *this;}
132 private:
133
134 Aws::String m_associatedResourceId;
135 bool m_associatedResourceIdHasBeenSet = false;
136
137 ImageAssociatedResourceType m_associatedResourceType;
138 bool m_associatedResourceTypeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_created;
141 bool m_createdHasBeenSet = false;
142
143 Aws::Utils::DateTime m_lastUpdatedTime;
144 bool m_lastUpdatedTimeHasBeenSet = false;
145
146 Aws::String m_imageId;
147 bool m_imageIdHasBeenSet = 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
ImageResourceAssociation & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
ImageResourceAssociation & WithAssociatedResourceId(const char *value)
ImageResourceAssociation & WithAssociatedResourceType(ImageAssociatedResourceType &&value)
AWS_WORKSPACES_API ImageResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
void SetAssociatedResourceType(const ImageAssociatedResourceType &value)
void SetStateReason(const AssociationStateReason &value)
ImageResourceAssociation & WithState(AssociationState &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ImageResourceAssociation & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
ImageResourceAssociation & WithCreated(Aws::Utils::DateTime &&value)
ImageResourceAssociation & WithAssociatedResourceId(Aws::String &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
ImageResourceAssociation & WithImageId(const char *value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
ImageResourceAssociation & WithImageId(Aws::String &&value)
const AssociationStateReason & GetStateReason() const
AWS_WORKSPACES_API ImageResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
const ImageAssociatedResourceType & GetAssociatedResourceType() const
void SetAssociatedResourceType(ImageAssociatedResourceType &&value)
ImageResourceAssociation & WithStateReason(const AssociationStateReason &value)
ImageResourceAssociation & WithAssociatedResourceId(const Aws::String &value)
void SetCreated(const Aws::Utils::DateTime &value)
ImageResourceAssociation & WithImageId(const Aws::String &value)
ImageResourceAssociation & WithStateReason(AssociationStateReason &&value)
ImageResourceAssociation & WithAssociatedResourceType(const ImageAssociatedResourceType &value)
ImageResourceAssociation & WithCreated(const Aws::Utils::DateTime &value)
ImageResourceAssociation & WithState(const AssociationState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue