AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PackageSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API PackageSource() = default;
31 AWS_OPENSEARCHSERVICE_API PackageSource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API PackageSource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
40 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
41 template <typename S3BucketNameT = Aws::String>
42 void SetS3BucketName(S3BucketNameT&& value) {
43 m_s3BucketNameHasBeenSet = true;
44 m_s3BucketName = std::forward<S3BucketNameT>(value);
45 }
46 template <typename S3BucketNameT = Aws::String>
47 PackageSource& WithS3BucketName(S3BucketNameT&& value) {
48 SetS3BucketName(std::forward<S3BucketNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetS3Key() const { return m_s3Key; }
58 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
59 template <typename S3KeyT = Aws::String>
60 void SetS3Key(S3KeyT&& value) {
61 m_s3KeyHasBeenSet = true;
62 m_s3Key = std::forward<S3KeyT>(value);
63 }
64 template <typename S3KeyT = Aws::String>
65 PackageSource& WithS3Key(S3KeyT&& value) {
66 SetS3Key(std::forward<S3KeyT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_s3BucketName;
72
73 Aws::String m_s3Key;
74 bool m_s3BucketNameHasBeenSet = false;
75 bool m_s3KeyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace OpenSearchService
80} // namespace Aws
void SetS3BucketName(S3BucketNameT &&value)
AWS_OPENSEARCHSERVICE_API PackageSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API PackageSource(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API PackageSource()=default
PackageSource & WithS3Key(S3KeyT &&value)
const Aws::String & GetS3BucketName() const
PackageSource & WithS3BucketName(S3BucketNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue