AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
47 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
48 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
49 inline ImportSourceCredentialsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
50 inline ImportSourceCredentialsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
51 inline ImportSourceCredentialsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
53
55
62 inline const Aws::String& GetToken() const{ return m_token; }
63 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
64 inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
65 inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
66 inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
67 inline ImportSourceCredentialsRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
68 inline ImportSourceCredentialsRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
69 inline ImportSourceCredentialsRequest& WithToken(const char* value) { SetToken(value); return *this;}
71
73
76 inline const ServerType& GetServerType() const{ return m_serverType; }
77 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
78 inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
79 inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
80 inline ImportSourceCredentialsRequest& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
81 inline ImportSourceCredentialsRequest& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
83
85
90 inline const AuthType& GetAuthType() const{ return m_authType; }
91 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
92 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
93 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
94 inline ImportSourceCredentialsRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
95 inline ImportSourceCredentialsRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
97
99
104 inline bool GetShouldOverwrite() const{ return m_shouldOverwrite; }
105 inline bool ShouldOverwriteHasBeenSet() const { return m_shouldOverwriteHasBeenSet; }
106 inline void SetShouldOverwrite(bool value) { m_shouldOverwriteHasBeenSet = true; m_shouldOverwrite = value; }
107 inline ImportSourceCredentialsRequest& WithShouldOverwrite(bool value) { SetShouldOverwrite(value); return *this;}
109 private:
110
111 Aws::String m_username;
112 bool m_usernameHasBeenSet = false;
113
114 Aws::String m_token;
115 bool m_tokenHasBeenSet = false;
116
117 ServerType m_serverType;
118 bool m_serverTypeHasBeenSet = false;
119
120 AuthType m_authType;
121 bool m_authTypeHasBeenSet = false;
122
123 bool m_shouldOverwrite;
124 bool m_shouldOverwriteHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CodeBuild
129} // namespace Aws
ImportSourceCredentialsRequest & WithServerType(ServerType &&value)
AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportSourceCredentialsRequest & WithToken(const Aws::String &value)
AWS_CODEBUILD_API Aws::String SerializePayload() const override
ImportSourceCredentialsRequest & WithAuthType(AuthType &&value)
ImportSourceCredentialsRequest & WithServerType(const ServerType &value)
ImportSourceCredentialsRequest & WithUsername(const char *value)
ImportSourceCredentialsRequest & WithAuthType(const AuthType &value)
ImportSourceCredentialsRequest & WithToken(const char *value)
ImportSourceCredentialsRequest & WithToken(Aws::String &&value)
ImportSourceCredentialsRequest & WithUsername(const Aws::String &value)
ImportSourceCredentialsRequest & WithShouldOverwrite(bool value)
ImportSourceCredentialsRequest & WithUsername(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String