AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
DataSourceAttachmentSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/DataSourceAttachmentStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API DataSourceAttachmentSummary() = default;
32 AWS_OPENSEARCHSERVICE_API DataSourceAttachmentSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
41 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
42 template <typename AttachmentIdT = Aws::String>
43 void SetAttachmentId(AttachmentIdT&& value) {
44 m_attachmentIdHasBeenSet = true;
45 m_attachmentId = std::forward<AttachmentIdT>(value);
46 }
47 template <typename AttachmentIdT = Aws::String>
49 SetAttachmentId(std::forward<AttachmentIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
57 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
58 template <typename DataSourceArnT = Aws::String>
59 void SetDataSourceArn(DataSourceArnT&& value) {
60 m_dataSourceArnHasBeenSet = true;
61 m_dataSourceArn = std::forward<DataSourceArnT>(value);
62 }
63 template <typename DataSourceArnT = Aws::String>
65 SetDataSourceArn(std::forward<DataSourceArnT>(value));
66 return *this;
67 }
69
71
75 inline DataSourceAttachmentStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86 private:
87 Aws::String m_attachmentId;
88
89 Aws::String m_dataSourceArn;
90
92 bool m_attachmentIdHasBeenSet = false;
93 bool m_dataSourceArnHasBeenSet = false;
94 bool m_statusHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace OpenSearchService
99} // namespace Aws
AWS_OPENSEARCHSERVICE_API DataSourceAttachmentSummary()=default
AWS_OPENSEARCHSERVICE_API DataSourceAttachmentSummary(Aws::Utils::Json::JsonView jsonValue)
DataSourceAttachmentSummary & WithAttachmentId(AttachmentIdT &&value)
AWS_OPENSEARCHSERVICE_API DataSourceAttachmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceAttachmentSummary & WithStatus(DataSourceAttachmentStatus value)
DataSourceAttachmentSummary & WithDataSourceArn(DataSourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue