AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateChapCredentialsRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace StorageGateway
15{
16namespace Model
17{
18
30 {
31 public:
32 AWS_STORAGEGATEWAY_API UpdateChapCredentialsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateChapCredentials"; }
39
40 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
41
42 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
51 inline const Aws::String& GetTargetARN() const { return m_targetARN; }
52 inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
53 template<typename TargetARNT = Aws::String>
54 void SetTargetARN(TargetARNT&& value) { m_targetARNHasBeenSet = true; m_targetARN = std::forward<TargetARNT>(value); }
55 template<typename TargetARNT = Aws::String>
56 UpdateChapCredentialsRequest& WithTargetARN(TargetARNT&& value) { SetTargetARN(std::forward<TargetARNT>(value)); return *this;}
58
60
65 inline const Aws::String& GetSecretToAuthenticateInitiator() const { return m_secretToAuthenticateInitiator; }
66 inline bool SecretToAuthenticateInitiatorHasBeenSet() const { return m_secretToAuthenticateInitiatorHasBeenSet; }
67 template<typename SecretToAuthenticateInitiatorT = Aws::String>
68 void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) { m_secretToAuthenticateInitiatorHasBeenSet = true; m_secretToAuthenticateInitiator = std::forward<SecretToAuthenticateInitiatorT>(value); }
69 template<typename SecretToAuthenticateInitiatorT = Aws::String>
70 UpdateChapCredentialsRequest& WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT&& value) { SetSecretToAuthenticateInitiator(std::forward<SecretToAuthenticateInitiatorT>(value)); return *this;}
72
74
77 inline const Aws::String& GetInitiatorName() const { return m_initiatorName; }
78 inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
79 template<typename InitiatorNameT = Aws::String>
80 void SetInitiatorName(InitiatorNameT&& value) { m_initiatorNameHasBeenSet = true; m_initiatorName = std::forward<InitiatorNameT>(value); }
81 template<typename InitiatorNameT = Aws::String>
82 UpdateChapCredentialsRequest& WithInitiatorName(InitiatorNameT&& value) { SetInitiatorName(std::forward<InitiatorNameT>(value)); return *this;}
84
86
92 inline const Aws::String& GetSecretToAuthenticateTarget() const { return m_secretToAuthenticateTarget; }
93 inline bool SecretToAuthenticateTargetHasBeenSet() const { return m_secretToAuthenticateTargetHasBeenSet; }
94 template<typename SecretToAuthenticateTargetT = Aws::String>
95 void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) { m_secretToAuthenticateTargetHasBeenSet = true; m_secretToAuthenticateTarget = std::forward<SecretToAuthenticateTargetT>(value); }
96 template<typename SecretToAuthenticateTargetT = Aws::String>
97 UpdateChapCredentialsRequest& WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT&& value) { SetSecretToAuthenticateTarget(std::forward<SecretToAuthenticateTargetT>(value)); return *this;}
99 private:
100
101 Aws::String m_targetARN;
102 bool m_targetARNHasBeenSet = false;
103
104 Aws::String m_secretToAuthenticateInitiator;
105 bool m_secretToAuthenticateInitiatorHasBeenSet = false;
106
107 Aws::String m_initiatorName;
108 bool m_initiatorNameHasBeenSet = false;
109
110 Aws::String m_secretToAuthenticateTarget;
111 bool m_secretToAuthenticateTargetHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace StorageGateway
116} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateChapCredentialsRequest & WithSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
void SetSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
UpdateChapCredentialsRequest & WithTargetARN(TargetARNT &&value)
UpdateChapCredentialsRequest & WithInitiatorName(InitiatorNameT &&value)
UpdateChapCredentialsRequest & WithSecretToAuthenticateInitiator(SecretToAuthenticateInitiatorT &&value)
void SetSecretToAuthenticateTarget(SecretToAuthenticateTargetT &&value)
AWS_STORAGEGATEWAY_API UpdateChapCredentialsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String