AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyHapgRequest.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
20 
21 namespace Aws
22 {
23 namespace CloudHSM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetHapgArn() const{ return m_hapgArn; }
42 
46  inline void SetHapgArn(const Aws::String& value) { m_hapgArnHasBeenSet = true; m_hapgArn = value; }
47 
51  inline void SetHapgArn(Aws::String&& value) { m_hapgArnHasBeenSet = true; m_hapgArn = value; }
52 
56  inline void SetHapgArn(const char* value) { m_hapgArnHasBeenSet = true; m_hapgArn.assign(value); }
57 
61  inline ModifyHapgRequest& WithHapgArn(const Aws::String& value) { SetHapgArn(value); return *this;}
62 
66  inline ModifyHapgRequest& WithHapgArn(Aws::String&& value) { SetHapgArn(value); return *this;}
67 
71  inline ModifyHapgRequest& WithHapgArn(const char* value) { SetHapgArn(value); return *this;}
72 
76  inline const Aws::String& GetLabel() const{ return m_label; }
77 
81  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
82 
86  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = value; }
87 
91  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
92 
96  inline ModifyHapgRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
97 
101  inline ModifyHapgRequest& WithLabel(Aws::String&& value) { SetLabel(value); return *this;}
102 
106  inline ModifyHapgRequest& WithLabel(const char* value) { SetLabel(value); return *this;}
107 
112  inline const Aws::Vector<Aws::String>& GetPartitionSerialList() const{ return m_partitionSerialList; }
113 
118  inline void SetPartitionSerialList(const Aws::Vector<Aws::String>& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList = value; }
119 
124  inline void SetPartitionSerialList(Aws::Vector<Aws::String>&& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList = value; }
125 
130  inline ModifyHapgRequest& WithPartitionSerialList(const Aws::Vector<Aws::String>& value) { SetPartitionSerialList(value); return *this;}
131 
136  inline ModifyHapgRequest& WithPartitionSerialList(Aws::Vector<Aws::String>&& value) { SetPartitionSerialList(value); return *this;}
137 
142  inline ModifyHapgRequest& AddPartitionSerialList(const Aws::String& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(value); return *this; }
143 
148  inline ModifyHapgRequest& AddPartitionSerialList(Aws::String&& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(value); return *this; }
149 
154  inline ModifyHapgRequest& AddPartitionSerialList(const char* value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(value); return *this; }
155 
156  private:
157  Aws::String m_hapgArn;
158  bool m_hapgArnHasBeenSet;
159  Aws::String m_label;
160  bool m_labelHasBeenSet;
161  Aws::Vector<Aws::String> m_partitionSerialList;
162  bool m_partitionSerialListHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace CloudHSM
167 } // namespace Aws
ModifyHapgRequest & WithPartitionSerialList(const Aws::Vector< Aws::String > &value)
ModifyHapgRequest & WithLabel(const char *value)
ModifyHapgRequest & WithPartitionSerialList(Aws::Vector< Aws::String > &&value)
ModifyHapgRequest & WithLabel(const Aws::String &value)
const Aws::String & GetLabel() const
ModifyHapgRequest & WithLabel(Aws::String &&value)
void SetHapgArn(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_CLOUDHSM_API
void SetLabel(const Aws::String &value)
const Aws::String & GetHapgArn() const
const Aws::Vector< Aws::String > & GetPartitionSerialList() const
ModifyHapgRequest & WithHapgArn(Aws::String &&value)
ModifyHapgRequest & AddPartitionSerialList(const char *value)
ModifyHapgRequest & WithHapgArn(const Aws::String &value)
void SetPartitionSerialList(Aws::Vector< Aws::String > &&value)
ModifyHapgRequest & WithHapgArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyHapgRequest & AddPartitionSerialList(Aws::String &&value)
void SetPartitionSerialList(const Aws::Vector< Aws::String > &value)
ModifyHapgRequest & AddPartitionSerialList(const Aws::String &value)
JSON (JavaScript Object Notation).