AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupingStatusesItem.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resource-groups/model/GroupingType.h>
10#include <aws/resource-groups/model/GroupingStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResourceGroups
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RESOURCEGROUPS_API GroupingStatusesItem();
39 AWS_RESOURCEGROUPS_API GroupingStatusesItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESOURCEGROUPS_API GroupingStatusesItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
49 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
51 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
52 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
53 inline GroupingStatusesItem& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
54 inline GroupingStatusesItem& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
55 inline GroupingStatusesItem& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
57
59
63 inline const GroupingType& GetAction() const{ return m_action; }
64 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
65 inline void SetAction(const GroupingType& value) { m_actionHasBeenSet = true; m_action = value; }
66 inline void SetAction(GroupingType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
67 inline GroupingStatusesItem& WithAction(const GroupingType& value) { SetAction(value); return *this;}
68 inline GroupingStatusesItem& WithAction(GroupingType&& value) { SetAction(std::move(value)); return *this;}
70
72
76 inline const GroupingStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const GroupingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(GroupingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline GroupingStatusesItem& WithStatus(const GroupingStatus& value) { SetStatus(value); return *this;}
81 inline GroupingStatusesItem& WithStatus(GroupingStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
89 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
90 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
91 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
92 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
93 inline GroupingStatusesItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
94 inline GroupingStatusesItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
95 inline GroupingStatusesItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
97
99
102 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
103 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
104 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
105 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
106 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
107 inline GroupingStatusesItem& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
108 inline GroupingStatusesItem& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
109 inline GroupingStatusesItem& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
117 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
118 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
119 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
120 inline GroupingStatusesItem& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
121 inline GroupingStatusesItem& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_resourceArn;
126 bool m_resourceArnHasBeenSet = false;
127
128 GroupingType m_action;
129 bool m_actionHasBeenSet = false;
130
131 GroupingStatus m_status;
132 bool m_statusHasBeenSet = false;
133
134 Aws::String m_errorMessage;
135 bool m_errorMessageHasBeenSet = false;
136
137 Aws::String m_errorCode;
138 bool m_errorCodeHasBeenSet = false;
139
140 Aws::Utils::DateTime m_updatedAt;
141 bool m_updatedAtHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace ResourceGroups
146} // namespace Aws
AWS_RESOURCEGROUPS_API GroupingStatusesItem & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupingStatusesItem & WithUpdatedAt(Aws::Utils::DateTime &&value)
GroupingStatusesItem & WithAction(GroupingType &&value)
AWS_RESOURCEGROUPS_API GroupingStatusesItem(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
GroupingStatusesItem & WithErrorCode(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GroupingStatusesItem & WithUpdatedAt(const Aws::Utils::DateTime &value)
GroupingStatusesItem & WithErrorCode(const Aws::String &value)
GroupingStatusesItem & WithResourceArn(const char *value)
GroupingStatusesItem & WithErrorMessage(const Aws::String &value)
GroupingStatusesItem & WithResourceArn(Aws::String &&value)
GroupingStatusesItem & WithErrorCode(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GroupingStatusesItem & WithResourceArn(const Aws::String &value)
GroupingStatusesItem & WithErrorMessage(const char *value)
GroupingStatusesItem & WithStatus(const GroupingStatus &value)
GroupingStatusesItem & WithAction(const GroupingType &value)
GroupingStatusesItem & WithStatus(GroupingStatus &&value)
GroupingStatusesItem & WithErrorMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue