AWS SDK for C++  0.12.9
AWS SDK for C++
ReplicationRule.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/s3/S3_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace S3
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  ReplicationRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
47  inline const Aws::String& GetID() const{ return m_iD; }
48 
52  inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
53 
57  inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = value; }
58 
62  inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
63 
67  inline ReplicationRule& WithID(const Aws::String& value) { SetID(value); return *this;}
68 
72  inline ReplicationRule& WithID(Aws::String&& value) { SetID(value); return *this;}
73 
77  inline ReplicationRule& WithID(const char* value) { SetID(value); return *this;}
78 
84  inline const Aws::String& GetPrefix() const{ return m_prefix; }
85 
91  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
92 
98  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
99 
105  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
106 
112  inline ReplicationRule& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
113 
119  inline ReplicationRule& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
120 
126  inline ReplicationRule& WithPrefix(const char* value) { SetPrefix(value); return *this;}
127 
131  inline const ReplicationRuleStatus& GetStatus() const{ return m_status; }
132 
136  inline void SetStatus(const ReplicationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
137 
141  inline void SetStatus(ReplicationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
142 
146  inline ReplicationRule& WithStatus(const ReplicationRuleStatus& value) { SetStatus(value); return *this;}
147 
151  inline ReplicationRule& WithStatus(ReplicationRuleStatus&& value) { SetStatus(value); return *this;}
152 
153 
154  inline const Destination& GetDestination() const{ return m_destination; }
155 
156 
157  inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
158 
159 
160  inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = value; }
161 
162 
163  inline ReplicationRule& WithDestination(const Destination& value) { SetDestination(value); return *this;}
164 
165 
166  inline ReplicationRule& WithDestination(Destination&& value) { SetDestination(value); return *this;}
167 
168  private:
169  Aws::String m_iD;
170  bool m_iDHasBeenSet;
171  Aws::String m_prefix;
172  bool m_prefixHasBeenSet;
173  ReplicationRuleStatus m_status;
174  bool m_statusHasBeenSet;
175  Destination m_destination;
176  bool m_destinationHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace S3
181 } // namespace Aws
ReplicationRule & WithDestination(Destination &&value)
void SetDestination(const Destination &value)
ReplicationRule & WithStatus(ReplicationRuleStatus &&value)
ReplicationRule & WithID(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
const Aws::String & GetPrefix() const
ReplicationRule & WithStatus(const ReplicationRuleStatus &value)
void SetID(const Aws::String &value)
const ReplicationRuleStatus & GetStatus() const
ReplicationRule & WithDestination(const Destination &value)
void SetStatus(const ReplicationRuleStatus &value)
void SetPrefix(const char *value)
ReplicationRule & WithPrefix(const Aws::String &value)
ReplicationRule & WithPrefix(const char *value)
void SetStatus(ReplicationRuleStatus &&value)
ReplicationRule & WithID(const Aws::String &value)
void SetDestination(Destination &&value)
const Destination & GetDestination() const
ReplicationRule & WithPrefix(Aws::String &&value)
void SetPrefix(Aws::String &&value)
void SetPrefix(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetID(Aws::String &&value)
void SetID(const char *value)
ReplicationRule & WithID(Aws::String &&value)
const Aws::String & GetID() const
JSON (JavaScript Object Notation).