AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportSourceCredentialsRequest.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/CodeBuildRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/ServerType.h>
11#include <aws/codebuild/model/AuthType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeBuild
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODEBUILD_API ImportSourceCredentialsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportSourceCredentials"; }
33
34 AWS_CODEBUILD_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetUsername() const { return m_username; }
45 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
46 template<typename UsernameT = Aws::String>
47 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
48 template<typename UsernameT = Aws::String>
49 ImportSourceCredentialsRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetToken() const { return m_token; }
61 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
62 template<typename TokenT = Aws::String>
63 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
64 template<typename TokenT = Aws::String>
65 ImportSourceCredentialsRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
67
69
72 inline ServerType GetServerType() const { return m_serverType; }
73 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
74 inline void SetServerType(ServerType value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
77
79
84 inline AuthType GetAuthType() const { return m_authType; }
85 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
86 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
87 inline ImportSourceCredentialsRequest& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
89
91
96 inline bool GetShouldOverwrite() const { return m_shouldOverwrite; }
97 inline bool ShouldOverwriteHasBeenSet() const { return m_shouldOverwriteHasBeenSet; }
98 inline void SetShouldOverwrite(bool value) { m_shouldOverwriteHasBeenSet = true; m_shouldOverwrite = value; }
99 inline ImportSourceCredentialsRequest& WithShouldOverwrite(bool value) { SetShouldOverwrite(value); return *this;}
101 private:
102
103 Aws::String m_username;
104 bool m_usernameHasBeenSet = false;
105
106 Aws::String m_token;
107 bool m_tokenHasBeenSet = false;
108
109 ServerType m_serverType{ServerType::NOT_SET};
110 bool m_serverTypeHasBeenSet = false;
111
112 AuthType m_authType{AuthType::NOT_SET};
113 bool m_authTypeHasBeenSet = false;
114
115 bool m_shouldOverwrite{false};
116 bool m_shouldOverwriteHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace CodeBuild
121} // 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