AWS SDK for C++  0.12.9
AWS SDK for C++
ArtifactStore.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 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CodePipeline
31 {
32 namespace Model
33 {
34 
42  {
43  public:
44  ArtifactStore();
46  ArtifactStore& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const ArtifactStoreType& GetType() const{ return m_type; }
53 
57  inline void SetType(const ArtifactStoreType& value) { m_typeHasBeenSet = true; m_type = value; }
58 
62  inline void SetType(ArtifactStoreType&& value) { m_typeHasBeenSet = true; m_type = value; }
63 
67  inline ArtifactStore& WithType(const ArtifactStoreType& value) { SetType(value); return *this;}
68 
72  inline ArtifactStore& WithType(ArtifactStoreType&& value) { SetType(value); return *this;}
73 
78  inline const Aws::String& GetLocation() const{ return m_location; }
79 
84  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
85 
90  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = value; }
91 
96  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
97 
102  inline ArtifactStore& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
103 
108  inline ArtifactStore& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
109 
114  inline ArtifactStore& WithLocation(const char* value) { SetLocation(value); return *this;}
115 
121  inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; }
122 
128  inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
129 
135  inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
136 
142  inline ArtifactStore& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;}
143 
149  inline ArtifactStore& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(value); return *this;}
150 
151  private:
152  ArtifactStoreType m_type;
153  bool m_typeHasBeenSet;
154  Aws::String m_location;
155  bool m_locationHasBeenSet;
156  EncryptionKey m_encryptionKey;
157  bool m_encryptionKeyHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace CodePipeline
162 } // namespace Aws
void SetLocation(const Aws::String &value)
Definition: ArtifactStore.h:84
void SetEncryptionKey(EncryptionKey &&value)
ArtifactStore & WithLocation(const char *value)
void SetLocation(Aws::String &&value)
Definition: ArtifactStore.h:90
const EncryptionKey & GetEncryptionKey() const
void SetType(const ArtifactStoreType &value)
Definition: ArtifactStore.h:57
void SetLocation(const char *value)
Definition: ArtifactStore.h:96
ArtifactStore & WithEncryptionKey(EncryptionKey &&value)
const ArtifactStoreType & GetType() const
Definition: ArtifactStore.h:52
void SetType(ArtifactStoreType &&value)
Definition: ArtifactStore.h:62
ArtifactStore & WithType(ArtifactStoreType &&value)
Definition: ArtifactStore.h:72
ArtifactStore & WithEncryptionKey(const EncryptionKey &value)
void SetEncryptionKey(const EncryptionKey &value)
ArtifactStore & WithType(const ArtifactStoreType &value)
Definition: ArtifactStore.h:67
#define AWS_CODEPIPELINE_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ArtifactStore & WithLocation(const Aws::String &value)
ArtifactStore & WithLocation(Aws::String &&value)
JSON (JavaScript Object Notation).
const Aws::String & GetLocation() const
Definition: ArtifactStore.h:78