AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ResourceGroups {
15namespace Model {
16
20 public:
21 AWS_RESOURCEGROUPS_API UpdateGroupRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateGroup"; }
28
29 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetGroup() const { return m_group; }
36 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
37 template <typename GroupT = Aws::String>
38 void SetGroup(GroupT&& value) {
39 m_groupHasBeenSet = true;
40 m_group = std::forward<GroupT>(value);
41 }
42 template <typename GroupT = Aws::String>
43 UpdateGroupRequest& WithGroup(GroupT&& value) {
44 SetGroup(std::forward<GroupT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 UpdateGroupRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
74 inline int GetCriticality() const { return m_criticality; }
75 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
76 inline void SetCriticality(int value) {
77 m_criticalityHasBeenSet = true;
78 m_criticality = value;
79 }
81 SetCriticality(value);
82 return *this;
83 }
85
87
91 inline const Aws::String& GetOwner() const { return m_owner; }
92 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
93 template <typename OwnerT = Aws::String>
94 void SetOwner(OwnerT&& value) {
95 m_ownerHasBeenSet = true;
96 m_owner = std::forward<OwnerT>(value);
97 }
98 template <typename OwnerT = Aws::String>
99 UpdateGroupRequest& WithOwner(OwnerT&& value) {
100 SetOwner(std::forward<OwnerT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDisplayName() const { return m_displayName; }
110 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
111 template <typename DisplayNameT = Aws::String>
112 void SetDisplayName(DisplayNameT&& value) {
113 m_displayNameHasBeenSet = true;
114 m_displayName = std::forward<DisplayNameT>(value);
115 }
116 template <typename DisplayNameT = Aws::String>
117 UpdateGroupRequest& WithDisplayName(DisplayNameT&& value) {
118 SetDisplayName(std::forward<DisplayNameT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_group;
124
125 Aws::String m_description;
126
127 int m_criticality{0};
128
129 Aws::String m_owner;
130
131 Aws::String m_displayName;
132 bool m_groupHasBeenSet = false;
133 bool m_descriptionHasBeenSet = false;
134 bool m_criticalityHasBeenSet = false;
135 bool m_ownerHasBeenSet = false;
136 bool m_displayNameHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ResourceGroups
141} // namespace Aws
AWS_RESOURCEGROUPS_API UpdateGroupRequest()=default
UpdateGroupRequest & WithDescription(DescriptionT &&value)
UpdateGroupRequest & WithGroup(GroupT &&value)
UpdateGroupRequest & WithOwner(OwnerT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
UpdateGroupRequest & WithDisplayName(DisplayNameT &&value)
UpdateGroupRequest & WithCriticality(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String