AWS SDK for C++  0.12.9
AWS SDK for C++
SnapshotCopyGrant.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
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
46  {
47  public:
50  SnapshotCopyGrant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51 
52  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
53  void OutputToStream(Aws::OStream& oStream, const char* location) const;
54 
58  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
59 
63  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
64 
68  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
69 
73  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
74 
78  inline SnapshotCopyGrant& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
79 
83  inline SnapshotCopyGrant& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(value); return *this;}
84 
88  inline SnapshotCopyGrant& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
89 
94  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
95 
100  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
101 
106  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
107 
112  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
113 
118  inline SnapshotCopyGrant& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
119 
124  inline SnapshotCopyGrant& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
125 
130  inline SnapshotCopyGrant& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
131 
135  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 
140  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 
145  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 
150  inline SnapshotCopyGrant& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
151 
155  inline SnapshotCopyGrant& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
156 
160  inline SnapshotCopyGrant& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
161 
165  inline SnapshotCopyGrant& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
166 
167  private:
168  Aws::String m_snapshotCopyGrantName;
169  bool m_snapshotCopyGrantNameHasBeenSet;
170  Aws::String m_kmsKeyId;
171  bool m_kmsKeyIdHasBeenSet;
172  Aws::Vector<Tag> m_tags;
173  bool m_tagsHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace Redshift
178 } // namespace Aws
SnapshotCopyGrant & WithSnapshotCopyGrantName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetSnapshotCopyGrantName() const
void SetKmsKeyId(const Aws::String &value)
void SetSnapshotCopyGrantName(const Aws::String &value)
const Aws::String & GetKmsKeyId() const
SnapshotCopyGrant & AddTags(Tag &&value)
SnapshotCopyGrant & WithKmsKeyId(Aws::String &&value)
SnapshotCopyGrant & WithKmsKeyId(const char *value)
SnapshotCopyGrant & WithKmsKeyId(const Aws::String &value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(Aws::String &&value)
#define AWS_REDSHIFT_API
void SetTags(Aws::Vector< Tag > &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::Vector< Tag > & GetTags() const
SnapshotCopyGrant & WithTags(Aws::Vector< Tag > &&value)
SnapshotCopyGrant & WithSnapshotCopyGrantName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
SnapshotCopyGrant & WithTags(const Aws::Vector< Tag > &value)
SnapshotCopyGrant & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSnapshotCopyGrantName(Aws::String &&value)
void SetSnapshotCopyGrantName(const char *value)
JSON (JavaScript Object Notation).