AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartStreamEncryptionRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/EncryptionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Kinesis
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartStreamEncryption"; }
32
33 AWS_KINESIS_API Aws::String SerializePayload() const override;
34
36
40 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
41
43
46 inline const Aws::String& GetStreamName() const{ return m_streamName; }
47 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
48 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
49 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
50 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
51 inline StartStreamEncryptionRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
52 inline StartStreamEncryptionRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
53 inline StartStreamEncryptionRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
55
57
60 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
61 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
62 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
63 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
65 inline StartStreamEncryptionRequest& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
67
69
84 inline const Aws::String& GetKeyId() const{ return m_keyId; }
85 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
86 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
87 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
88 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
89 inline StartStreamEncryptionRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
90 inline StartStreamEncryptionRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
91 inline StartStreamEncryptionRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
93
95
98 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
99 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
100 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
101 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
102 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
103 inline StartStreamEncryptionRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
104 inline StartStreamEncryptionRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
105 inline StartStreamEncryptionRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
107 private:
108
109 Aws::String m_streamName;
110 bool m_streamNameHasBeenSet = false;
111
112 EncryptionType m_encryptionType;
113 bool m_encryptionTypeHasBeenSet = false;
114
115 Aws::String m_keyId;
116 bool m_keyIdHasBeenSet = false;
117
118 Aws::String m_streamARN;
119 bool m_streamARNHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Kinesis
124} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_KINESIS_API Aws::String SerializePayload() const override
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartStreamEncryptionRequest & WithStreamName(const char *value)
StartStreamEncryptionRequest & WithKeyId(Aws::String &&value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
StartStreamEncryptionRequest & WithEncryptionType(EncryptionType &&value)
StartStreamEncryptionRequest & WithStreamName(const Aws::String &value)
StartStreamEncryptionRequest & WithEncryptionType(const EncryptionType &value)
StartStreamEncryptionRequest & WithStreamName(Aws::String &&value)
StartStreamEncryptionRequest & WithStreamARN(const Aws::String &value)
StartStreamEncryptionRequest & WithStreamARN(Aws::String &&value)
StartStreamEncryptionRequest & WithKeyId(const Aws::String &value)
StartStreamEncryptionRequest & WithKeyId(const char *value)
StartStreamEncryptionRequest & WithStreamARN(const char *value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String