AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TargetObjectKeyFormat.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/SimplePrefix.h>
9#include <aws/s3-crt/model/PartitionedPrefix.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Crt
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3CRT_API TargetObjectKeyFormat() = default;
36 AWS_S3CRT_API TargetObjectKeyFormat(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const SimplePrefix& GetSimplePrefix() const { return m_simplePrefix; }
48 inline bool SimplePrefixHasBeenSet() const { return m_simplePrefixHasBeenSet; }
49 template<typename SimplePrefixT = SimplePrefix>
50 void SetSimplePrefix(SimplePrefixT&& value) { m_simplePrefixHasBeenSet = true; m_simplePrefix = std::forward<SimplePrefixT>(value); }
51 template<typename SimplePrefixT = SimplePrefix>
52 TargetObjectKeyFormat& WithSimplePrefix(SimplePrefixT&& value) { SetSimplePrefix(std::forward<SimplePrefixT>(value)); return *this;}
54
56
59 inline const PartitionedPrefix& GetPartitionedPrefix() const { return m_partitionedPrefix; }
60 inline bool PartitionedPrefixHasBeenSet() const { return m_partitionedPrefixHasBeenSet; }
61 template<typename PartitionedPrefixT = PartitionedPrefix>
62 void SetPartitionedPrefix(PartitionedPrefixT&& value) { m_partitionedPrefixHasBeenSet = true; m_partitionedPrefix = std::forward<PartitionedPrefixT>(value); }
63 template<typename PartitionedPrefixT = PartitionedPrefix>
64 TargetObjectKeyFormat& WithPartitionedPrefix(PartitionedPrefixT&& value) { SetPartitionedPrefix(std::forward<PartitionedPrefixT>(value)); return *this;}
66 private:
67
68 SimplePrefix m_simplePrefix;
69 bool m_simplePrefixHasBeenSet = false;
70
71 PartitionedPrefix m_partitionedPrefix;
72 bool m_partitionedPrefixHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace S3Crt
77} // namespace Aws
const PartitionedPrefix & GetPartitionedPrefix() const
AWS_S3CRT_API TargetObjectKeyFormat()=default
void SetPartitionedPrefix(PartitionedPrefixT &&value)
AWS_S3CRT_API TargetObjectKeyFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetObjectKeyFormat & WithPartitionedPrefix(PartitionedPrefixT &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TargetObjectKeyFormat & WithSimplePrefix(SimplePrefixT &&value)
AWS_S3CRT_API TargetObjectKeyFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)