AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterSnapshotCopyStatus.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Redshift
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  ClusterSnapshotCopyStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
52  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
53 
58  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
59 
64  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
65 
70  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
71 
76  inline ClusterSnapshotCopyStatus& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
77 
82  inline ClusterSnapshotCopyStatus& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(value); return *this;}
83 
88  inline ClusterSnapshotCopyStatus& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
89 
94  inline long long GetRetentionPeriod() const{ return m_retentionPeriod; }
95 
100  inline void SetRetentionPeriod(long long value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
101 
106  inline ClusterSnapshotCopyStatus& WithRetentionPeriod(long long value) { SetRetentionPeriod(value); return *this;}
107 
111  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
112 
116  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
117 
121  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
122 
126  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
127 
131  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
132 
136  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(value); return *this;}
137 
141  inline ClusterSnapshotCopyStatus& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
142 
143  private:
144  Aws::String m_destinationRegion;
145  bool m_destinationRegionHasBeenSet;
146  long long m_retentionPeriod;
147  bool m_retentionPeriodHasBeenSet;
148  Aws::String m_snapshotCopyGrantName;
149  bool m_snapshotCopyGrantNameHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace Redshift
154 } // namespace Aws
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(Aws::String &&value)
ClusterSnapshotCopyStatus & WithDestinationRegion(const char *value)
ClusterSnapshotCopyStatus & WithDestinationRegion(Aws::String &&value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const Aws::String &value)
ClusterSnapshotCopyStatus & WithSnapshotCopyGrantName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterSnapshotCopyStatus & WithDestinationRegion(const Aws::String &value)
ClusterSnapshotCopyStatus & WithRetentionPeriod(long long value)
JSON (JavaScript Object Notation).