AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OriginDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dataexchange/DataExchange_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataExchange {
20namespace Model {
21
28 public:
29 AWS_DATAEXCHANGE_API OriginDetails() = default;
30 AWS_DATAEXCHANGE_API OriginDetails(Aws::Utils::Json::JsonView jsonValue);
31 AWS_DATAEXCHANGE_API OriginDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetProductId() const { return m_productId; }
39 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
40 template <typename ProductIdT = Aws::String>
41 void SetProductId(ProductIdT&& value) {
42 m_productIdHasBeenSet = true;
43 m_productId = std::forward<ProductIdT>(value);
44 }
45 template <typename ProductIdT = Aws::String>
46 OriginDetails& WithProductId(ProductIdT&& value) {
47 SetProductId(std::forward<ProductIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDataGrantId() const { return m_dataGrantId; }
57 inline bool DataGrantIdHasBeenSet() const { return m_dataGrantIdHasBeenSet; }
58 template <typename DataGrantIdT = Aws::String>
59 void SetDataGrantId(DataGrantIdT&& value) {
60 m_dataGrantIdHasBeenSet = true;
61 m_dataGrantId = std::forward<DataGrantIdT>(value);
62 }
63 template <typename DataGrantIdT = Aws::String>
64 OriginDetails& WithDataGrantId(DataGrantIdT&& value) {
65 SetDataGrantId(std::forward<DataGrantIdT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_productId;
71
72 Aws::String m_dataGrantId;
73 bool m_productIdHasBeenSet = false;
74 bool m_dataGrantIdHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace DataExchange
79} // namespace Aws
const Aws::String & GetDataGrantId() const
OriginDetails & WithDataGrantId(DataGrantIdT &&value)
OriginDetails & WithProductId(ProductIdT &&value)
const Aws::String & GetProductId() const
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAEXCHANGE_API OriginDetails()=default
AWS_DATAEXCHANGE_API OriginDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API OriginDetails(Aws::Utils::Json::JsonView jsonValue)
void SetProductId(ProductIdT &&value)
void SetDataGrantId(DataGrantIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue