AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ImportSourceCredentialsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuildRequest.h>
8#include <aws/codebuild/CodeBuild_EXPORTS.h>
9#include <aws/codebuild/model/AuthType.h>
10#include <aws/codebuild/model/ServerType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeBuild {
17namespace Model {
18
22 public:
23 AWS_CODEBUILD_API ImportSourceCredentialsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ImportSourceCredentials"; }
30
31 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetUsername() const { return m_username; }
41 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
42 template <typename UsernameT = Aws::String>
43 void SetUsername(UsernameT&& value) {
44 m_usernameHasBeenSet = true;
45 m_username = std::forward<UsernameT>(value);
46 }
47 template <typename UsernameT = Aws::String>
49 SetUsername(std::forward<UsernameT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetToken() const { return m_token; }
63 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
64 template <typename TokenT = Aws::String>
65 void SetToken(TokenT&& value) {
66 m_tokenHasBeenSet = true;
67 m_token = std::forward<TokenT>(value);
68 }
69 template <typename TokenT = Aws::String>
71 SetToken(std::forward<TokenT>(value));
72 return *this;
73 }
75
77
80 inline ServerType GetServerType() const { return m_serverType; }
81 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
82 inline void SetServerType(ServerType value) {
83 m_serverTypeHasBeenSet = true;
84 m_serverType = value;
85 }
87 SetServerType(value);
88 return *this;
89 }
91
93
98 inline AuthType GetAuthType() const { return m_authType; }
99 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
100 inline void SetAuthType(AuthType value) {
101 m_authTypeHasBeenSet = true;
102 m_authType = value;
103 }
105 SetAuthType(value);
106 return *this;
107 }
109
111
116 inline bool GetShouldOverwrite() const { return m_shouldOverwrite; }
117 inline bool ShouldOverwriteHasBeenSet() const { return m_shouldOverwriteHasBeenSet; }
118 inline void SetShouldOverwrite(bool value) {
119 m_shouldOverwriteHasBeenSet = true;
120 m_shouldOverwrite = value;
121 }
123 SetShouldOverwrite(value);
124 return *this;
125 }
127 private:
128 Aws::String m_username;
129 bool m_usernameHasBeenSet = false;
130
131 Aws::String m_token;
132 bool m_tokenHasBeenSet = false;
133
134 ServerType m_serverType{ServerType::NOT_SET};
135 bool m_serverTypeHasBeenSet = false;
136
137 AuthType m_authType{AuthType::NOT_SET};
138 bool m_authTypeHasBeenSet = false;
139
140 bool m_shouldOverwrite{false};
141 bool m_shouldOverwriteHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CodeBuild
146} // namespace Aws
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportSourceCredentialsRequest & WithAuthType(AuthType value)
ImportSourceCredentialsRequest & WithServerType(ServerType value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
ImportSourceCredentialsRequest & WithToken(TokenT &&value)
ImportSourceCredentialsRequest & WithShouldOverwrite(bool value)
ImportSourceCredentialsRequest & WithUsername(UsernameT &&value)
AWS_CODEBUILD_API ImportSourceCredentialsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String