AWS SDK for C++  1.9.104
AWS SDK for C++
StartStreamEncryptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Kinesis
16 {
17 namespace 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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetStreamName() const{ return m_streamName; }
42 
46  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
47 
51  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
52 
56  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
57 
61  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
62 
66  inline StartStreamEncryptionRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
67 
71  inline StartStreamEncryptionRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
72 
76  inline StartStreamEncryptionRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
77 
78 
82  inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
83 
87  inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
88 
92  inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
93 
97  inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
98 
102  inline StartStreamEncryptionRequest& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
103 
107  inline StartStreamEncryptionRequest& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
108 
109 
124  inline const Aws::String& GetKeyId() const{ return m_keyId; }
125 
140  inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
141 
156  inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
157 
172  inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
173 
188  inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
189 
204  inline StartStreamEncryptionRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
205 
220  inline StartStreamEncryptionRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
221 
236  inline StartStreamEncryptionRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
237 
238  private:
239 
240  Aws::String m_streamName;
241  bool m_streamNameHasBeenSet;
242 
243  EncryptionType m_encryptionType;
244  bool m_encryptionTypeHasBeenSet;
245 
246  Aws::String m_keyId;
247  bool m_keyIdHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace Kinesis
252 } // namespace Aws
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithStreamName
StartStreamEncryptionRequest & WithStreamName(const char *value)
Definition: StartStreamEncryptionRequest.h:76
Aws::Kinesis::Model::StartStreamEncryptionRequest::GetKeyId
const Aws::String & GetKeyId() const
Definition: StartStreamEncryptionRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::StartStreamEncryptionRequest::KeyIdHasBeenSet
bool KeyIdHasBeenSet() const
Definition: StartStreamEncryptionRequest.h:140
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithStreamName
StartStreamEncryptionRequest & WithStreamName(const Aws::String &value)
Definition: StartStreamEncryptionRequest.h:66
Aws::Kinesis::Model::StartStreamEncryptionRequest::SerializePayload
Aws::String SerializePayload() const override
EncryptionType.h
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithKeyId
StartStreamEncryptionRequest & WithKeyId(const char *value)
Definition: StartStreamEncryptionRequest.h:236
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: StartStreamEncryptionRequest.h:156
Aws::Kinesis::Model::StartStreamEncryptionRequest::EncryptionTypeHasBeenSet
bool EncryptionTypeHasBeenSet() const
Definition: StartStreamEncryptionRequest.h:87
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: StartStreamEncryptionRequest.h:172
KinesisRequest.h
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetStreamName
void SetStreamName(const char *value)
Definition: StartStreamEncryptionRequest.h:61
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetEncryptionType
void SetEncryptionType(EncryptionType &&value)
Definition: StartStreamEncryptionRequest.h:97
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: StartStreamEncryptionRequest.h:56
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithStreamName
StartStreamEncryptionRequest & WithStreamName(Aws::String &&value)
Definition: StartStreamEncryptionRequest.h:71
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetKeyId
void SetKeyId(const char *value)
Definition: StartStreamEncryptionRequest.h:188
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: StartStreamEncryptionRequest.h:51
Kinesis_EXPORTS.h
Aws::Kinesis::Model::EncryptionType
EncryptionType
Definition: EncryptionType.h:17
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithEncryptionType
StartStreamEncryptionRequest & WithEncryptionType(EncryptionType &&value)
Definition: StartStreamEncryptionRequest.h:107
Aws::Kinesis::Model::StartStreamEncryptionRequest
Definition: StartStreamEncryptionRequest.h:23
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithEncryptionType
StartStreamEncryptionRequest & WithEncryptionType(const EncryptionType &value)
Definition: StartStreamEncryptionRequest.h:102
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithKeyId
StartStreamEncryptionRequest & WithKeyId(const Aws::String &value)
Definition: StartStreamEncryptionRequest.h:204
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::StartStreamEncryptionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::StartStreamEncryptionRequest::StartStreamEncryptionRequest
StartStreamEncryptionRequest()
Aws::Kinesis::Model::StartStreamEncryptionRequest::GetEncryptionType
const EncryptionType & GetEncryptionType() const
Definition: StartStreamEncryptionRequest.h:82
Aws::Kinesis::Model::StartStreamEncryptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartStreamEncryptionRequest.h:31
Aws::Kinesis::Model::StartStreamEncryptionRequest::WithKeyId
StartStreamEncryptionRequest & WithKeyId(Aws::String &&value)
Definition: StartStreamEncryptionRequest.h:220
Aws::Kinesis::Model::StartStreamEncryptionRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: StartStreamEncryptionRequest.h:41
Aws::Kinesis::Model::StartStreamEncryptionRequest::SetEncryptionType
void SetEncryptionType(const EncryptionType &value)
Definition: StartStreamEncryptionRequest.h:92
Aws::Kinesis::Model::StartStreamEncryptionRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: StartStreamEncryptionRequest.h:46