AWS SDK for C++  0.12.9
AWS SDK for C++
DeregisterScalableTargetRequest.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 ApplicationAutoScaling
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
45  inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
46 
53  inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
54 
61  inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
62 
69  inline DeregisterScalableTargetRequest& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
70 
77  inline DeregisterScalableTargetRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(value); return *this;}
78 
85  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
86 
93  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
94 
101  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
102 
109  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
110 
117  inline DeregisterScalableTargetRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
118 
125  inline DeregisterScalableTargetRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
126 
133  inline DeregisterScalableTargetRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
134 
141  inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
142 
149  inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
150 
157  inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
158 
165  inline DeregisterScalableTargetRequest& WithScalableDimension(const ScalableDimension& value) { SetScalableDimension(value); return *this;}
166 
173  inline DeregisterScalableTargetRequest& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(value); return *this;}
174 
175  private:
176  ServiceNamespace m_serviceNamespace;
177  bool m_serviceNamespaceHasBeenSet;
178  Aws::String m_resourceId;
179  bool m_resourceIdHasBeenSet;
180  ScalableDimension m_scalableDimension;
181  bool m_scalableDimensionHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace ApplicationAutoScaling
186 } // namespace Aws
#define AWS_APPLICATIONAUTOSCALING_API
DeregisterScalableTargetRequest & WithScalableDimension(const ScalableDimension &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DeregisterScalableTargetRequest & WithServiceNamespace(const ServiceNamespace &value)
DeregisterScalableTargetRequest & WithScalableDimension(ScalableDimension &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeregisterScalableTargetRequest & WithResourceId(Aws::String &&value)
DeregisterScalableTargetRequest & WithResourceId(const Aws::String &value)
DeregisterScalableTargetRequest & WithServiceNamespace(ServiceNamespace &&value)
JSON (JavaScript Object Notation).