AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ArtifactStore.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ArtifactStoreType.h>
9#include <aws/codepipeline/model/EncryptionKey.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline {
22namespace Model {
23
34 public:
35 AWS_CODEPIPELINE_API ArtifactStore() = default;
36 AWS_CODEPIPELINE_API ArtifactStore(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEPIPELINE_API ArtifactStore& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline ArtifactStoreType GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(ArtifactStoreType value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
51 SetType(value);
52 return *this;
53 }
55
57
64 inline const Aws::String& GetLocation() const { return m_location; }
65 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
66 template <typename LocationT = Aws::String>
67 void SetLocation(LocationT&& value) {
68 m_locationHasBeenSet = true;
69 m_location = std::forward<LocationT>(value);
70 }
71 template <typename LocationT = Aws::String>
72 ArtifactStore& WithLocation(LocationT&& value) {
73 SetLocation(std::forward<LocationT>(value));
74 return *this;
75 }
77
79
84 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
85 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
86 template <typename EncryptionKeyT = EncryptionKey>
87 void SetEncryptionKey(EncryptionKeyT&& value) {
88 m_encryptionKeyHasBeenSet = true;
89 m_encryptionKey = std::forward<EncryptionKeyT>(value);
90 }
91 template <typename EncryptionKeyT = EncryptionKey>
92 ArtifactStore& WithEncryptionKey(EncryptionKeyT&& value) {
93 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::String m_location;
101
102 EncryptionKey m_encryptionKey;
103 bool m_typeHasBeenSet = false;
104 bool m_locationHasBeenSet = false;
105 bool m_encryptionKeyHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CodePipeline
110} // namespace Aws
AWS_CODEPIPELINE_API ArtifactStore(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API ArtifactStore()=default
ArtifactStore & WithType(ArtifactStoreType value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const EncryptionKey & GetEncryptionKey() const
ArtifactStoreType GetType() const
void SetEncryptionKey(EncryptionKeyT &&value)
const Aws::String & GetLocation() const
ArtifactStore & WithLocation(LocationT &&value)
AWS_CODEPIPELINE_API ArtifactStore & operator=(Aws::Utils::Json::JsonView jsonValue)
ArtifactStore & WithEncryptionKey(EncryptionKeyT &&value)
void SetType(ArtifactStoreType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue