AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EncryptionKey.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/EncryptionKeyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodePipeline {
21namespace Model {
22
31 public:
32 AWS_CODEPIPELINE_API EncryptionKey() = default;
33 AWS_CODEPIPELINE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEPIPELINE_API EncryptionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 EncryptionKey& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
66 inline EncryptionKeyType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(EncryptionKeyType value) {
69 m_typeHasBeenSet = true;
70 m_type = value;
71 }
73 SetType(value);
74 return *this;
75 }
77 private:
78 Aws::String m_id;
79
81 bool m_idHasBeenSet = false;
82 bool m_typeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CodePipeline
87} // namespace Aws
EncryptionKey & WithType(EncryptionKeyType value)
AWS_CODEPIPELINE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(EncryptionKeyType value)
const Aws::String & GetId() const
AWS_CODEPIPELINE_API EncryptionKey()=default
EncryptionKey & WithId(IdT &&value)
EncryptionKeyType GetType() const
AWS_CODEPIPELINE_API EncryptionKey & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue