AWS SDK for C++  1.8.76
AWS SDK for C++
UpdateAccountRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace APIGateway
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateAccount"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
44  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
45 
50  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
51 
56  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
57 
62  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
63 
68  inline UpdateAccountRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
69 
74  inline UpdateAccountRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
75 
80  inline UpdateAccountRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
81 
86  inline UpdateAccountRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
87 
88  private:
89 
90  Aws::Vector<PatchOperation> m_patchOperations;
91  bool m_patchOperationsHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace APIGateway
96 } // namespace Aws
UpdateAccountRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
virtual const char * GetServiceRequestName() const override
UpdateAccountRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
#define AWS_APIGATEWAY_API
UpdateAccountRequest & AddPatchOperations(const PatchOperation &value)
UpdateAccountRequest & AddPatchOperations(PatchOperation &&value)