AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AssociateSourceViewsRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_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 Billing {
16namespace Model {
17
21 public:
22 AWS_BILLING_API AssociateSourceViewsRequest() = 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 "AssociateSourceViews"; }
29
30 AWS_BILLING_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
66 inline const Aws::Vector<Aws::String>& GetSourceViews() const { return m_sourceViews; }
67 inline bool SourceViewsHasBeenSet() const { return m_sourceViewsHasBeenSet; }
68 template <typename SourceViewsT = Aws::Vector<Aws::String>>
69 void SetSourceViews(SourceViewsT&& value) {
70 m_sourceViewsHasBeenSet = true;
71 m_sourceViews = std::forward<SourceViewsT>(value);
72 }
73 template <typename SourceViewsT = Aws::Vector<Aws::String>>
75 SetSourceViews(std::forward<SourceViewsT>(value));
76 return *this;
77 }
78 template <typename SourceViewsT = Aws::String>
80 m_sourceViewsHasBeenSet = true;
81 m_sourceViews.emplace_back(std::forward<SourceViewsT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_arn;
87
88 Aws::Vector<Aws::String> m_sourceViews;
89 bool m_arnHasBeenSet = false;
90 bool m_sourceViewsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Billing
95} // namespace Aws
const Aws::Vector< Aws::String > & GetSourceViews() const
AssociateSourceViewsRequest & WithArn(ArnT &&value)
virtual const char * GetServiceRequestName() const override
AssociateSourceViewsRequest & AddSourceViews(SourceViewsT &&value)
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BILLING_API AssociateSourceViewsRequest()=default
AWS_BILLING_API Aws::String SerializePayload() const override
AssociateSourceViewsRequest & WithSourceViews(SourceViewsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector