AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TargetObjectKeyFormat.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/PartitionedPrefix.h>
9#include <aws/s3/model/SimplePrefix.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
29 public:
30 AWS_S3_API TargetObjectKeyFormat() = default;
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline const SimplePrefix& GetSimplePrefix() const { return m_simplePrefix; }
42 inline bool SimplePrefixHasBeenSet() const { return m_simplePrefixHasBeenSet; }
43 template <typename SimplePrefixT = SimplePrefix>
44 void SetSimplePrefix(SimplePrefixT&& value) {
45 m_simplePrefixHasBeenSet = true;
46 m_simplePrefix = std::forward<SimplePrefixT>(value);
47 }
48 template <typename SimplePrefixT = SimplePrefix>
49 TargetObjectKeyFormat& WithSimplePrefix(SimplePrefixT&& value) {
50 SetSimplePrefix(std::forward<SimplePrefixT>(value));
51 return *this;
52 }
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) {
63 m_partitionedPrefixHasBeenSet = true;
64 m_partitionedPrefix = std::forward<PartitionedPrefixT>(value);
65 }
66 template <typename PartitionedPrefixT = PartitionedPrefix>
67 TargetObjectKeyFormat& WithPartitionedPrefix(PartitionedPrefixT&& value) {
68 SetPartitionedPrefix(std::forward<PartitionedPrefixT>(value));
69 return *this;
70 }
72 private:
73 SimplePrefix m_simplePrefix;
74
75 PartitionedPrefix m_partitionedPrefix;
76 bool m_simplePrefixHasBeenSet = false;
77 bool m_partitionedPrefixHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace S3
82} // namespace Aws
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API TargetObjectKeyFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSimplePrefix(SimplePrefixT &&value)
AWS_S3_API TargetObjectKeyFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
const SimplePrefix & GetSimplePrefix() const
void SetPartitionedPrefix(PartitionedPrefixT &&value)
TargetObjectKeyFormat & WithPartitionedPrefix(PartitionedPrefixT &&value)
AWS_S3_API TargetObjectKeyFormat()=default
const PartitionedPrefix & GetPartitionedPrefix() const
TargetObjectKeyFormat & WithSimplePrefix(SimplePrefixT &&value)