AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
S3ImportSource.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudTrail {
20namespace Model {
21
28 public:
29 AWS_CLOUDTRAIL_API S3ImportSource() = default;
30 AWS_CLOUDTRAIL_API S3ImportSource(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CLOUDTRAIL_API S3ImportSource& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetS3LocationUri() const { return m_s3LocationUri; }
39 inline bool S3LocationUriHasBeenSet() const { return m_s3LocationUriHasBeenSet; }
40 template <typename S3LocationUriT = Aws::String>
41 void SetS3LocationUri(S3LocationUriT&& value) {
42 m_s3LocationUriHasBeenSet = true;
43 m_s3LocationUri = std::forward<S3LocationUriT>(value);
44 }
45 template <typename S3LocationUriT = Aws::String>
46 S3ImportSource& WithS3LocationUri(S3LocationUriT&& value) {
47 SetS3LocationUri(std::forward<S3LocationUriT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetS3BucketRegion() const { return m_s3BucketRegion; }
57 inline bool S3BucketRegionHasBeenSet() const { return m_s3BucketRegionHasBeenSet; }
58 template <typename S3BucketRegionT = Aws::String>
59 void SetS3BucketRegion(S3BucketRegionT&& value) {
60 m_s3BucketRegionHasBeenSet = true;
61 m_s3BucketRegion = std::forward<S3BucketRegionT>(value);
62 }
63 template <typename S3BucketRegionT = Aws::String>
64 S3ImportSource& WithS3BucketRegion(S3BucketRegionT&& value) {
65 SetS3BucketRegion(std::forward<S3BucketRegionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetS3BucketAccessRoleArn() const { return m_s3BucketAccessRoleArn; }
75 inline bool S3BucketAccessRoleArnHasBeenSet() const { return m_s3BucketAccessRoleArnHasBeenSet; }
76 template <typename S3BucketAccessRoleArnT = Aws::String>
77 void SetS3BucketAccessRoleArn(S3BucketAccessRoleArnT&& value) {
78 m_s3BucketAccessRoleArnHasBeenSet = true;
79 m_s3BucketAccessRoleArn = std::forward<S3BucketAccessRoleArnT>(value);
80 }
81 template <typename S3BucketAccessRoleArnT = Aws::String>
82 S3ImportSource& WithS3BucketAccessRoleArn(S3BucketAccessRoleArnT&& value) {
83 SetS3BucketAccessRoleArn(std::forward<S3BucketAccessRoleArnT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_s3LocationUri;
89
90 Aws::String m_s3BucketRegion;
91
92 Aws::String m_s3BucketAccessRoleArn;
93 bool m_s3LocationUriHasBeenSet = false;
94 bool m_s3BucketRegionHasBeenSet = false;
95 bool m_s3BucketAccessRoleArnHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CloudTrail
100} // namespace Aws
AWS_CLOUDTRAIL_API S3ImportSource(Aws::Utils::Json::JsonView jsonValue)
void SetS3LocationUri(S3LocationUriT &&value)
const Aws::String & GetS3BucketRegion() const
AWS_CLOUDTRAIL_API S3ImportSource()=default
const Aws::String & GetS3LocationUri() const
const Aws::String & GetS3BucketAccessRoleArn() const
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API S3ImportSource & operator=(Aws::Utils::Json::JsonView jsonValue)
S3ImportSource & WithS3BucketRegion(S3BucketRegionT &&value)
void SetS3BucketAccessRoleArn(S3BucketAccessRoleArnT &&value)
void SetS3BucketRegion(S3BucketRegionT &&value)
S3ImportSource & WithS3BucketAccessRoleArn(S3BucketAccessRoleArnT &&value)
S3ImportSource & WithS3LocationUri(S3LocationUriT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue