AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
FileRef.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace PartnerCentralMarketing {
20namespace Model {
21
36class FileRef {
37 public:
38 AWS_PARTNERCENTRALMARKETING_API FileRef() = default;
39 AWS_PARTNERCENTRALMARKETING_API FileRef(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_PARTNERCENTRALMARKETING_API FileRef& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline const Aws::String& GetS3Uri() const { return m_s3Uri; }
48 inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
49 template <typename S3UriT = Aws::String>
50 void SetS3Uri(S3UriT&& value) {
51 m_s3UriHasBeenSet = true;
52 m_s3Uri = std::forward<S3UriT>(value);
53 }
54 template <typename S3UriT = Aws::String>
55 FileRef& WithS3Uri(S3UriT&& value) {
56 SetS3Uri(std::forward<S3UriT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetVersionId() const { return m_versionId; }
67 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
68 template <typename VersionIdT = Aws::String>
69 void SetVersionId(VersionIdT&& value) {
70 m_versionIdHasBeenSet = true;
71 m_versionId = std::forward<VersionIdT>(value);
72 }
73 template <typename VersionIdT = Aws::String>
74 FileRef& WithVersionId(VersionIdT&& value) {
75 SetVersionId(std::forward<VersionIdT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_s3Uri;
81
82 Aws::String m_versionId;
83 bool m_s3UriHasBeenSet = false;
84 bool m_versionIdHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace PartnerCentralMarketing
89} // namespace Aws
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetVersionId(VersionIdT &&value)
Definition FileRef.h:69
AWS_PARTNERCENTRALMARKETING_API FileRef()=default
const Aws::String & GetS3Uri() const
Definition FileRef.h:47
FileRef & WithVersionId(VersionIdT &&value)
Definition FileRef.h:74
FileRef & WithS3Uri(S3UriT &&value)
Definition FileRef.h:55
AWS_PARTNERCENTRALMARKETING_API FileRef & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetVersionId() const
Definition FileRef.h:66
AWS_PARTNERCENTRALMARKETING_API FileRef(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String