AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateDatasourcePackagesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/detective/DetectiveRequest.h>
10#include <aws/detective/Detective_EXPORTS.h>
11#include <aws/detective/model/DatasourcePackage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Detective {
17namespace Model {
18
22 public:
23 AWS_DETECTIVE_API UpdateDatasourcePackagesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateDatasourcePackages"; }
30
31 AWS_DETECTIVE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetGraphArn() const { return m_graphArn; }
38 inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; }
39 template <typename GraphArnT = Aws::String>
40 void SetGraphArn(GraphArnT&& value) {
41 m_graphArnHasBeenSet = true;
42 m_graphArn = std::forward<GraphArnT>(value);
43 }
44 template <typename GraphArnT = Aws::String>
46 SetGraphArn(std::forward<GraphArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<DatasourcePackage>& GetDatasourcePackages() const { return m_datasourcePackages; }
56 inline bool DatasourcePackagesHasBeenSet() const { return m_datasourcePackagesHasBeenSet; }
57 template <typename DatasourcePackagesT = Aws::Vector<DatasourcePackage>>
58 void SetDatasourcePackages(DatasourcePackagesT&& value) {
59 m_datasourcePackagesHasBeenSet = true;
60 m_datasourcePackages = std::forward<DatasourcePackagesT>(value);
61 }
62 template <typename DatasourcePackagesT = Aws::Vector<DatasourcePackage>>
64 SetDatasourcePackages(std::forward<DatasourcePackagesT>(value));
65 return *this;
66 }
68 m_datasourcePackagesHasBeenSet = true;
69 m_datasourcePackages.push_back(value);
70 return *this;
71 }
73 private:
74 Aws::String m_graphArn;
75
76 Aws::Vector<DatasourcePackage> m_datasourcePackages;
77 bool m_graphArnHasBeenSet = false;
78 bool m_datasourcePackagesHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Detective
83} // namespace Aws
UpdateDatasourcePackagesRequest & WithGraphArn(GraphArnT &&value)
const Aws::Vector< DatasourcePackage > & GetDatasourcePackages() const
AWS_DETECTIVE_API Aws::String SerializePayload() const override
UpdateDatasourcePackagesRequest & WithDatasourcePackages(DatasourcePackagesT &&value)
AWS_DETECTIVE_API UpdateDatasourcePackagesRequest()=default
UpdateDatasourcePackagesRequest & AddDatasourcePackages(DatasourcePackage value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector