AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
57 inline const Aws::Vector<Aws::String>& GetSourceViews() const { return m_sourceViews; }
58 inline bool SourceViewsHasBeenSet() const { return m_sourceViewsHasBeenSet; }
59 template <typename SourceViewsT = Aws::Vector<Aws::String>>
60 void SetSourceViews(SourceViewsT&& value) {
61 m_sourceViewsHasBeenSet = true;
62 m_sourceViews = std::forward<SourceViewsT>(value);
63 }
64 template <typename SourceViewsT = Aws::Vector<Aws::String>>
66 SetSourceViews(std::forward<SourceViewsT>(value));
67 return *this;
68 }
69 template <typename SourceViewsT = Aws::String>
71 m_sourceViewsHasBeenSet = true;
72 m_sourceViews.emplace_back(std::forward<SourceViewsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_arn;
78
79 Aws::Vector<Aws::String> m_sourceViews;
80 bool m_arnHasBeenSet = false;
81 bool m_sourceViewsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Billing
86} // 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