AWS SDK for C++

AWS SDK for C++ Version 1.11.677

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRayRequest.h>
10#include <aws/xray/XRay_EXPORTS.h>
11#include <aws/xray/model/InsightsConfiguration.h>
12#include <aws/xray/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace XRay {
18namespace Model {
19
23 public:
24 AWS_XRAY_API CreateGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
31
32 AWS_XRAY_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetGroupName() const { return m_groupName; }
40 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
41 template <typename GroupNameT = Aws::String>
42 void SetGroupName(GroupNameT&& value) {
43 m_groupNameHasBeenSet = true;
44 m_groupName = std::forward<GroupNameT>(value);
45 }
46 template <typename GroupNameT = Aws::String>
47 CreateGroupRequest& WithGroupName(GroupNameT&& value) {
48 SetGroupName(std::forward<GroupNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFilterExpression() const { return m_filterExpression; }
58 inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
59 template <typename FilterExpressionT = Aws::String>
60 void SetFilterExpression(FilterExpressionT&& value) {
61 m_filterExpressionHasBeenSet = true;
62 m_filterExpression = std::forward<FilterExpressionT>(value);
63 }
64 template <typename FilterExpressionT = Aws::String>
65 CreateGroupRequest& WithFilterExpression(FilterExpressionT&& value) {
66 SetFilterExpression(std::forward<FilterExpressionT>(value));
67 return *this;
68 }
70
72
80 inline const InsightsConfiguration& GetInsightsConfiguration() const { return m_insightsConfiguration; }
81 inline bool InsightsConfigurationHasBeenSet() const { return m_insightsConfigurationHasBeenSet; }
82 template <typename InsightsConfigurationT = InsightsConfiguration>
83 void SetInsightsConfiguration(InsightsConfigurationT&& value) {
84 m_insightsConfigurationHasBeenSet = true;
85 m_insightsConfiguration = std::forward<InsightsConfigurationT>(value);
86 }
87 template <typename InsightsConfigurationT = InsightsConfiguration>
88 CreateGroupRequest& WithInsightsConfiguration(InsightsConfigurationT&& value) {
89 SetInsightsConfiguration(std::forward<InsightsConfigurationT>(value));
90 return *this;
91 }
93
95
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Vector<Tag>>
117 CreateGroupRequest& WithTags(TagsT&& value) {
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsT = Tag>
122 CreateGroupRequest& AddTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace_back(std::forward<TagsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_groupName;
130 bool m_groupNameHasBeenSet = false;
131
132 Aws::String m_filterExpression;
133 bool m_filterExpressionHasBeenSet = false;
134
135 InsightsConfiguration m_insightsConfiguration;
136 bool m_insightsConfigurationHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace XRay
144} // namespace Aws
void SetFilterExpression(FilterExpressionT &&value)
const Aws::String & GetFilterExpression() const
CreateGroupRequest & AddTags(TagsT &&value)
AWS_XRAY_API CreateGroupRequest()=default
AWS_XRAY_API Aws::String SerializePayload() const override
const InsightsConfiguration & GetInsightsConfiguration() const
CreateGroupRequest & WithFilterExpression(FilterExpressionT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetInsightsConfiguration(InsightsConfigurationT &&value)
CreateGroupRequest & WithGroupName(GroupNameT &&value)
CreateGroupRequest & WithInsightsConfiguration(InsightsConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetGroupName() const
CreateGroupRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector