AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
S3ConnectionConfig.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
29 public:
30 AWS_ASSURANCE_API S3ConnectionConfig() = default;
31 AWS_ASSURANCE_API S3ConnectionConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API S3ConnectionConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
42 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
43 template <typename SourceUriT = Aws::String>
44 void SetSourceUri(SourceUriT&& value) {
45 m_sourceUriHasBeenSet = true;
46 m_sourceUri = std::forward<SourceUriT>(value);
47 }
48 template <typename SourceUriT = Aws::String>
49 S3ConnectionConfig& WithSourceUri(SourceUriT&& value) {
50 SetSourceUri(std::forward<SourceUriT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
62 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
63 template <typename ExpectedBucketOwnerT = Aws::String>
64 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
65 m_expectedBucketOwnerHasBeenSet = true;
66 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
67 }
68 template <typename ExpectedBucketOwnerT = Aws::String>
69 S3ConnectionConfig& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
70 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_sourceUri;
76
77 Aws::String m_expectedBucketOwner;
78 bool m_sourceUriHasBeenSet = false;
79 bool m_expectedBucketOwnerHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Assurance
84} // namespace Aws
S3ConnectionConfig & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_ASSURANCE_API S3ConnectionConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API S3ConnectionConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
S3ConnectionConfig & WithSourceUri(SourceUriT &&value)
const Aws::String & GetExpectedBucketOwner() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API S3ConnectionConfig()=default
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String