AWS SDK for C++
1.8.154
AWS SDK for C++
aws-cpp-sdk-s3control
include
aws
s3control
model
LifecycleRuleAndOperator.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <
aws/s3control/S3Control_EXPORTS.h
>
8
#include <
aws/core/utils/memory/stl/AWSString.h
>
9
#include <
aws/core/utils/memory/stl/AWSVector.h
>
10
#include <
aws/s3control/model/S3Tag.h
>
11
#include <utility>
12
13
namespace
Aws
14
{
15
namespace
Utils
16
{
17
namespace
Xml
18
{
19
class
XmlNode;
20
}
// namespace Xml
21
}
// namespace Utils
22
namespace
S3Control
23
{
24
namespace
Model
25
{
26
33
class
AWS_S3CONTROL_API
LifecycleRuleAndOperator
34
{
35
public
:
36
LifecycleRuleAndOperator
();
37
LifecycleRuleAndOperator
(
const
Aws::Utils::Xml::XmlNode
& xmlNode);
38
LifecycleRuleAndOperator
&
operator=
(
const
Aws::Utils::Xml::XmlNode
& xmlNode);
39
40
void
AddToNode
(
Aws::Utils::Xml::XmlNode
& parentNode)
const
;
41
42
46
inline
const
Aws::String
&
GetPrefix
()
const
{
return
m_prefix; }
47
51
inline
bool
PrefixHasBeenSet
()
const
{
return
m_prefixHasBeenSet; }
52
56
inline
void
SetPrefix
(
const
Aws::String
& value) { m_prefixHasBeenSet =
true
; m_prefix = value; }
57
61
inline
void
SetPrefix
(
Aws::String
&& value) { m_prefixHasBeenSet =
true
; m_prefix = std::move(value); }
62
66
inline
void
SetPrefix
(
const
char
* value) { m_prefixHasBeenSet =
true
; m_prefix.assign(value); }
67
71
inline
LifecycleRuleAndOperator
&
WithPrefix
(
const
Aws::String
& value) { SetPrefix(value);
return
*
this
;}
72
76
inline
LifecycleRuleAndOperator
&
WithPrefix
(
Aws::String
&& value) { SetPrefix(std::move(value));
return
*
this
;}
77
81
inline
LifecycleRuleAndOperator
&
WithPrefix
(
const
char
* value) { SetPrefix(value);
return
*
this
;}
82
83
88
inline
const
Aws::Vector<S3Tag>
&
GetTags
()
const
{
return
m_tags; }
89
94
inline
bool
TagsHasBeenSet
()
const
{
return
m_tagsHasBeenSet; }
95
100
inline
void
SetTags
(
const
Aws::Vector<S3Tag>
& value) { m_tagsHasBeenSet =
true
; m_tags = value; }
101
106
inline
void
SetTags
(
Aws::Vector<S3Tag>
&& value) { m_tagsHasBeenSet =
true
; m_tags = std::move(value); }
107
112
inline
LifecycleRuleAndOperator
&
WithTags
(
const
Aws::Vector<S3Tag>
& value) { SetTags(value);
return
*
this
;}
113
118
inline
LifecycleRuleAndOperator
&
WithTags
(
Aws::Vector<S3Tag>
&& value) { SetTags(std::move(value));
return
*
this
;}
119
124
inline
LifecycleRuleAndOperator
&
AddTags
(
const
S3Tag
& value) { m_tagsHasBeenSet =
true
; m_tags.push_back(value);
return
*
this
; }
125
130
inline
LifecycleRuleAndOperator
&
AddTags
(
S3Tag
&& value) { m_tagsHasBeenSet =
true
; m_tags.push_back(std::move(value));
return
*
this
; }
131
132
private
:
133
134
Aws::String
m_prefix;
135
bool
m_prefixHasBeenSet;
136
137
Aws::Vector<S3Tag>
m_tags;
138
bool
m_tagsHasBeenSet;
139
};
140
141
}
// namespace Model
142
}
// namespace S3Control
143
}
// namespace Aws
Aws::S3Control::Model::LifecycleRuleAndOperator::WithPrefix
LifecycleRuleAndOperator & WithPrefix(const char *value)
Definition:
LifecycleRuleAndOperator.h:81
Aws::S3Control::Model::LifecycleRuleAndOperator::LifecycleRuleAndOperator
LifecycleRuleAndOperator()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition:
AWSVector.h:17
Aws::S3Control::Model::LifecycleRuleAndOperator::WithTags
LifecycleRuleAndOperator & WithTags(Aws::Vector< S3Tag > &&value)
Definition:
LifecycleRuleAndOperator.h:118
AWSVector.h
S3Control_EXPORTS.h
S3Tag.h
Aws::S3Control::Model::LifecycleRuleAndOperator::SetTags
void SetTags(const Aws::Vector< S3Tag > &value)
Definition:
LifecycleRuleAndOperator.h:100
Aws::S3Control::Model::LifecycleRuleAndOperator::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition:
LifecycleRuleAndOperator.h:51
Aws::S3Control::Model::LifecycleRuleAndOperator::SetPrefix
void SetPrefix(const Aws::String &value)
Definition:
LifecycleRuleAndOperator.h:56
Aws::Utils::Xml::XmlNode
Definition:
XmlSerializer.h:53
Aws::S3Control::Model::LifecycleRuleAndOperator::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::LifecycleRuleAndOperator::LifecycleRuleAndOperator
LifecycleRuleAndOperator(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition:
S3Control_EXPORTS.h:28
Aws::S3Control::Model::LifecycleRuleAndOperator::SetPrefix
void SetPrefix(Aws::String &&value)
Definition:
LifecycleRuleAndOperator.h:61
Aws::S3Control::Model::LifecycleRuleAndOperator::GetPrefix
const Aws::String & GetPrefix() const
Definition:
LifecycleRuleAndOperator.h:46
Aws::S3Control::Model::LifecycleRuleAndOperator::SetTags
void SetTags(Aws::Vector< S3Tag > &&value)
Definition:
LifecycleRuleAndOperator.h:106
AWSString.h
Aws::S3Control::Model::S3Tag
Definition:
S3Tag.h:31
Aws::S3Control::Model::LifecycleRuleAndOperator::WithPrefix
LifecycleRuleAndOperator & WithPrefix(const Aws::String &value)
Definition:
LifecycleRuleAndOperator.h:71
Aws::S3Control::Model::LifecycleRuleAndOperator::WithPrefix
LifecycleRuleAndOperator & WithPrefix(Aws::String &&value)
Definition:
LifecycleRuleAndOperator.h:76
Aws::S3Control::Model::LifecycleRuleAndOperator::AddTags
LifecycleRuleAndOperator & AddTags(const S3Tag &value)
Definition:
LifecycleRuleAndOperator.h:124
Aws::S3Control::Model::LifecycleRuleAndOperator::AddTags
LifecycleRuleAndOperator & AddTags(S3Tag &&value)
Definition:
LifecycleRuleAndOperator.h:130
Aws::S3Control::Model::LifecycleRuleAndOperator::WithTags
LifecycleRuleAndOperator & WithTags(const Aws::Vector< S3Tag > &value)
Definition:
LifecycleRuleAndOperator.h:112
Aws::S3Control::Model::LifecycleRuleAndOperator::GetTags
const Aws::Vector< S3Tag > & GetTags() const
Definition:
LifecycleRuleAndOperator.h:88
Aws::S3Control::Model::LifecycleRuleAndOperator::SetPrefix
void SetPrefix(const char *value)
Definition:
LifecycleRuleAndOperator.h:66
Aws
Definition:
AccessManagementClient.h:15
Aws::S3Control::Model::LifecycleRuleAndOperator::operator=
LifecycleRuleAndOperator & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition:
AWSString.h:97
Aws::S3Control::Model::LifecycleRuleAndOperator::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition:
LifecycleRuleAndOperator.h:94
Aws::S3Control::Model::LifecycleRuleAndOperator
Definition:
LifecycleRuleAndOperator.h:34
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences