AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyTargetGroupAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace ElasticLoadBalancingv2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
42 
46  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
47 
51  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
52 
56  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
57 
61  inline ModifyTargetGroupAttributesRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
62 
66  inline ModifyTargetGroupAttributesRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(value); return *this;}
67 
71  inline ModifyTargetGroupAttributesRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
72 
76  inline const Aws::Vector<TargetGroupAttribute>& GetAttributes() const{ return m_attributes; }
77 
81  inline void SetAttributes(const Aws::Vector<TargetGroupAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
82 
86  inline void SetAttributes(Aws::Vector<TargetGroupAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
87 
91  inline ModifyTargetGroupAttributesRequest& WithAttributes(const Aws::Vector<TargetGroupAttribute>& value) { SetAttributes(value); return *this;}
92 
96  inline ModifyTargetGroupAttributesRequest& WithAttributes(Aws::Vector<TargetGroupAttribute>&& value) { SetAttributes(value); return *this;}
97 
101  inline ModifyTargetGroupAttributesRequest& AddAttributes(const TargetGroupAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
102 
106  inline ModifyTargetGroupAttributesRequest& AddAttributes(TargetGroupAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
107 
108  private:
109  Aws::String m_targetGroupArn;
110  bool m_targetGroupArnHasBeenSet;
112  bool m_attributesHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace ElasticLoadBalancingv2
117 } // namespace Aws
ModifyTargetGroupAttributesRequest & WithAttributes(const Aws::Vector< TargetGroupAttribute > &value)
ModifyTargetGroupAttributesRequest & AddAttributes(const TargetGroupAttribute &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyTargetGroupAttributesRequest & AddAttributes(TargetGroupAttribute &&value)
ModifyTargetGroupAttributesRequest & WithTargetGroupArn(Aws::String &&value)
ModifyTargetGroupAttributesRequest & WithAttributes(Aws::Vector< TargetGroupAttribute > &&value)
ModifyTargetGroupAttributesRequest & WithTargetGroupArn(const char *value)
ModifyTargetGroupAttributesRequest & WithTargetGroupArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICLOADBALANCINGV2_API
JSON (JavaScript Object Notation).