AWS SDK for C++  0.14.3
AWS SDK for C++
RedshiftDatabase.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace MachineLearning
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  RedshiftDatabase& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
46  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
47 
48 
49  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
50 
51 
52  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
53 
54 
55  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
56 
57 
58  inline RedshiftDatabase& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
59 
60 
61  inline RedshiftDatabase& WithDatabaseName(Aws::String&& value) { SetDatabaseName(value); return *this;}
62 
63 
64  inline RedshiftDatabase& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
65 
66 
67  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
68 
69 
70  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
71 
72 
73  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
74 
75 
76  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
77 
78 
79  inline RedshiftDatabase& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
80 
81 
82  inline RedshiftDatabase& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
83 
84 
85  inline RedshiftDatabase& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
86 
87  private:
88  Aws::String m_databaseName;
89  bool m_databaseNameHasBeenSet;
90  Aws::String m_clusterIdentifier;
91  bool m_clusterIdentifierHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace MachineLearning
96 } // namespace Aws
RedshiftDatabase & WithDatabaseName(Aws::String &&value)
const Aws::String & GetClusterIdentifier() const
RedshiftDatabase & WithDatabaseName(const Aws::String &value)
RedshiftDatabase & WithClusterIdentifier(const char *value)
void SetDatabaseName(const Aws::String &value)
const Aws::String & GetDatabaseName() const
void SetClusterIdentifier(const Aws::String &value)
RedshiftDatabase & WithClusterIdentifier(Aws::String &&value)
RedshiftDatabase & WithClusterIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RedshiftDatabase & WithDatabaseName(const char *value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).