AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EncryptionKey.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/EncryptionKeyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CODEPIPELINE_API EncryptionKey() = default;
38 AWS_CODEPIPELINE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API EncryptionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 EncryptionKey& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
66 inline EncryptionKeyType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(EncryptionKeyType value) { m_typeHasBeenSet = true; m_type = value; }
69 inline EncryptionKey& WithType(EncryptionKeyType value) { SetType(value); return *this;}
71 private:
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75
77 bool m_typeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CodePipeline
82} // 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