1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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 <utility> 12 13 namespace Aws 14 { 15 namespace XRay 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_XRAY_API UpdateGroupRequest : public XRayRequest 23 { 24 public: 25 UpdateGroupRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "UpdateGroup"; } 32 33 Aws::String SerializePayload() const override; 34 35 36 /** 37 * <p>The case-sensitive name of the group.</p> 38 */ GetGroupName()39 inline const Aws::String& GetGroupName() const{ return m_groupName; } 40 41 /** 42 * <p>The case-sensitive name of the group.</p> 43 */ GroupNameHasBeenSet()44 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } 45 46 /** 47 * <p>The case-sensitive name of the group.</p> 48 */ SetGroupName(const Aws::String & value)49 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } 50 51 /** 52 * <p>The case-sensitive name of the group.</p> 53 */ SetGroupName(Aws::String && value)54 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } 55 56 /** 57 * <p>The case-sensitive name of the group.</p> 58 */ SetGroupName(const char * value)59 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } 60 61 /** 62 * <p>The case-sensitive name of the group.</p> 63 */ WithGroupName(const Aws::String & value)64 inline UpdateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} 65 66 /** 67 * <p>The case-sensitive name of the group.</p> 68 */ WithGroupName(Aws::String && value)69 inline UpdateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} 70 71 /** 72 * <p>The case-sensitive name of the group.</p> 73 */ WithGroupName(const char * value)74 inline UpdateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;} 75 76 77 /** 78 * <p>The ARN that was generated upon creation.</p> 79 */ GetGroupARN()80 inline const Aws::String& GetGroupARN() const{ return m_groupARN; } 81 82 /** 83 * <p>The ARN that was generated upon creation.</p> 84 */ GroupARNHasBeenSet()85 inline bool GroupARNHasBeenSet() const { return m_groupARNHasBeenSet; } 86 87 /** 88 * <p>The ARN that was generated upon creation.</p> 89 */ SetGroupARN(const Aws::String & value)90 inline void SetGroupARN(const Aws::String& value) { m_groupARNHasBeenSet = true; m_groupARN = value; } 91 92 /** 93 * <p>The ARN that was generated upon creation.</p> 94 */ SetGroupARN(Aws::String && value)95 inline void SetGroupARN(Aws::String&& value) { m_groupARNHasBeenSet = true; m_groupARN = std::move(value); } 96 97 /** 98 * <p>The ARN that was generated upon creation.</p> 99 */ SetGroupARN(const char * value)100 inline void SetGroupARN(const char* value) { m_groupARNHasBeenSet = true; m_groupARN.assign(value); } 101 102 /** 103 * <p>The ARN that was generated upon creation.</p> 104 */ WithGroupARN(const Aws::String & value)105 inline UpdateGroupRequest& WithGroupARN(const Aws::String& value) { SetGroupARN(value); return *this;} 106 107 /** 108 * <p>The ARN that was generated upon creation.</p> 109 */ WithGroupARN(Aws::String && value)110 inline UpdateGroupRequest& WithGroupARN(Aws::String&& value) { SetGroupARN(std::move(value)); return *this;} 111 112 /** 113 * <p>The ARN that was generated upon creation.</p> 114 */ WithGroupARN(const char * value)115 inline UpdateGroupRequest& WithGroupARN(const char* value) { SetGroupARN(value); return *this;} 116 117 118 /** 119 * <p>The updated filter expression defining criteria by which to group traces.</p> 120 */ GetFilterExpression()121 inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; } 122 123 /** 124 * <p>The updated filter expression defining criteria by which to group traces.</p> 125 */ FilterExpressionHasBeenSet()126 inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; } 127 128 /** 129 * <p>The updated filter expression defining criteria by which to group traces.</p> 130 */ SetFilterExpression(const Aws::String & value)131 inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; } 132 133 /** 134 * <p>The updated filter expression defining criteria by which to group traces.</p> 135 */ SetFilterExpression(Aws::String && value)136 inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); } 137 138 /** 139 * <p>The updated filter expression defining criteria by which to group traces.</p> 140 */ SetFilterExpression(const char * value)141 inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); } 142 143 /** 144 * <p>The updated filter expression defining criteria by which to group traces.</p> 145 */ WithFilterExpression(const Aws::String & value)146 inline UpdateGroupRequest& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;} 147 148 /** 149 * <p>The updated filter expression defining criteria by which to group traces.</p> 150 */ WithFilterExpression(Aws::String && value)151 inline UpdateGroupRequest& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;} 152 153 /** 154 * <p>The updated filter expression defining criteria by which to group traces.</p> 155 */ WithFilterExpression(const char * value)156 inline UpdateGroupRequest& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;} 157 158 159 /** 160 * <p>The structure containing configurations related to insights.</p> <ul> <li> 161 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 162 * group or false to disable insights for the group.</p> </li> <li> <p>The 163 * NotifcationsEnabled boolean can be set to true to enable insights notifications 164 * for the group. Notifications can only be enabled on a group with InsightsEnabled 165 * set to true.</p> </li> </ul> 166 */ GetInsightsConfiguration()167 inline const InsightsConfiguration& GetInsightsConfiguration() const{ return m_insightsConfiguration; } 168 169 /** 170 * <p>The structure containing configurations related to insights.</p> <ul> <li> 171 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 172 * group or false to disable insights for the group.</p> </li> <li> <p>The 173 * NotifcationsEnabled boolean can be set to true to enable insights notifications 174 * for the group. Notifications can only be enabled on a group with InsightsEnabled 175 * set to true.</p> </li> </ul> 176 */ InsightsConfigurationHasBeenSet()177 inline bool InsightsConfigurationHasBeenSet() const { return m_insightsConfigurationHasBeenSet; } 178 179 /** 180 * <p>The structure containing configurations related to insights.</p> <ul> <li> 181 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 182 * group or false to disable insights for the group.</p> </li> <li> <p>The 183 * NotifcationsEnabled boolean can be set to true to enable insights notifications 184 * for the group. Notifications can only be enabled on a group with InsightsEnabled 185 * set to true.</p> </li> </ul> 186 */ SetInsightsConfiguration(const InsightsConfiguration & value)187 inline void SetInsightsConfiguration(const InsightsConfiguration& value) { m_insightsConfigurationHasBeenSet = true; m_insightsConfiguration = value; } 188 189 /** 190 * <p>The structure containing configurations related to insights.</p> <ul> <li> 191 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 192 * group or false to disable insights for the group.</p> </li> <li> <p>The 193 * NotifcationsEnabled boolean can be set to true to enable insights notifications 194 * for the group. Notifications can only be enabled on a group with InsightsEnabled 195 * set to true.</p> </li> </ul> 196 */ SetInsightsConfiguration(InsightsConfiguration && value)197 inline void SetInsightsConfiguration(InsightsConfiguration&& value) { m_insightsConfigurationHasBeenSet = true; m_insightsConfiguration = std::move(value); } 198 199 /** 200 * <p>The structure containing configurations related to insights.</p> <ul> <li> 201 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 202 * group or false to disable insights for the group.</p> </li> <li> <p>The 203 * NotifcationsEnabled boolean can be set to true to enable insights notifications 204 * for the group. Notifications can only be enabled on a group with InsightsEnabled 205 * set to true.</p> </li> </ul> 206 */ WithInsightsConfiguration(const InsightsConfiguration & value)207 inline UpdateGroupRequest& WithInsightsConfiguration(const InsightsConfiguration& value) { SetInsightsConfiguration(value); return *this;} 208 209 /** 210 * <p>The structure containing configurations related to insights.</p> <ul> <li> 211 * <p>The InsightsEnabled boolean can be set to true to enable insights for the 212 * group or false to disable insights for the group.</p> </li> <li> <p>The 213 * NotifcationsEnabled boolean can be set to true to enable insights notifications 214 * for the group. Notifications can only be enabled on a group with InsightsEnabled 215 * set to true.</p> </li> </ul> 216 */ WithInsightsConfiguration(InsightsConfiguration && value)217 inline UpdateGroupRequest& WithInsightsConfiguration(InsightsConfiguration&& value) { SetInsightsConfiguration(std::move(value)); return *this;} 218 219 private: 220 221 Aws::String m_groupName; 222 bool m_groupNameHasBeenSet; 223 224 Aws::String m_groupARN; 225 bool m_groupARNHasBeenSet; 226 227 Aws::String m_filterExpression; 228 bool m_filterExpressionHasBeenSet; 229 230 InsightsConfiguration m_insightsConfiguration; 231 bool m_insightsConfigurationHasBeenSet; 232 }; 233 234 } // namespace Model 235 } // namespace XRay 236 } // namespace Aws 237