AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/XRayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/xray/model/InsightsConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/xray/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace XRay
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_XRAY_API CreateGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
34
35 AWS_XRAY_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetGroupName() const { return m_groupName; }
44 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
45 template<typename GroupNameT = Aws::String>
46 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
47 template<typename GroupNameT = Aws::String>
48 CreateGroupRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetFilterExpression() const { return m_filterExpression; }
56 inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
57 template<typename FilterExpressionT = Aws::String>
58 void SetFilterExpression(FilterExpressionT&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::forward<FilterExpressionT>(value); }
59 template<typename FilterExpressionT = Aws::String>
60 CreateGroupRequest& WithFilterExpression(FilterExpressionT&& value) { SetFilterExpression(std::forward<FilterExpressionT>(value)); return *this;}
62
64
72 inline const InsightsConfiguration& GetInsightsConfiguration() const { return m_insightsConfiguration; }
73 inline bool InsightsConfigurationHasBeenSet() const { return m_insightsConfigurationHasBeenSet; }
74 template<typename InsightsConfigurationT = InsightsConfiguration>
75 void SetInsightsConfiguration(InsightsConfigurationT&& value) { m_insightsConfigurationHasBeenSet = true; m_insightsConfiguration = std::forward<InsightsConfigurationT>(value); }
76 template<typename InsightsConfigurationT = InsightsConfiguration>
77 CreateGroupRequest& WithInsightsConfiguration(InsightsConfigurationT&& value) { SetInsightsConfiguration(std::forward<InsightsConfigurationT>(value)); return *this;}
79
81
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Vector<Tag>>
100 CreateGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsT = Tag>
102 CreateGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
104 private:
105
106 Aws::String m_groupName;
107 bool m_groupNameHasBeenSet = false;
108
109 Aws::String m_filterExpression;
110 bool m_filterExpressionHasBeenSet = false;
111
112 InsightsConfiguration m_insightsConfiguration;
113 bool m_insightsConfigurationHasBeenSet = false;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace XRay
121} // 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