AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AssociateManagedApisRequest.h
1
6#pragma once
7#include <aws/apiportal/APIPortalRequest.h>
8#include <aws/apiportal/APIPortal_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace APIPortal {
16namespace Model {
17
21 public:
22 AWS_APIPORTAL_API AssociateManagedApisRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateManagedApis"; }
29
30 AWS_APIPORTAL_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetProductId() const { return m_productId; }
37 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
38 template <typename ProductIdT = Aws::String>
39 void SetProductId(ProductIdT&& value) {
40 m_productIdHasBeenSet = true;
41 m_productId = std::forward<ProductIdT>(value);
42 }
43 template <typename ProductIdT = Aws::String>
45 SetProductId(std::forward<ProductIdT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::Vector<Aws::String>& GetManagedApiIds() const { return m_managedApiIds; }
53 inline bool ManagedApiIdsHasBeenSet() const { return m_managedApiIdsHasBeenSet; }
54 template <typename ManagedApiIdsT = Aws::Vector<Aws::String>>
55 void SetManagedApiIds(ManagedApiIdsT&& value) {
56 m_managedApiIdsHasBeenSet = true;
57 m_managedApiIds = std::forward<ManagedApiIdsT>(value);
58 }
59 template <typename ManagedApiIdsT = Aws::Vector<Aws::String>>
61 SetManagedApiIds(std::forward<ManagedApiIdsT>(value));
62 return *this;
63 }
64 template <typename ManagedApiIdsT = Aws::String>
66 m_managedApiIdsHasBeenSet = true;
67 m_managedApiIds.emplace_back(std::forward<ManagedApiIdsT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_productId;
73
74 Aws::Vector<Aws::String> m_managedApiIds;
75 bool m_productIdHasBeenSet = false;
76 bool m_managedApiIdsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace APIPortal
81} // namespace Aws
AWS_APIPORTAL_API AssociateManagedApisRequest()=default
AssociateManagedApisRequest & WithProductId(ProductIdT &&value)
AssociateManagedApisRequest & WithManagedApiIds(ManagedApiIdsT &&value)
const Aws::Vector< Aws::String > & GetManagedApiIds() const
AssociateManagedApisRequest & AddManagedApiIds(ManagedApiIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APIPORTAL_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector