AWS SDK for C++  1.9.108
AWS SDK for C++
WebhookAuthConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodePipeline
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
46  inline const Aws::String& GetAllowedIPRange() const{ return m_allowedIPRange; }
47 
53  inline bool AllowedIPRangeHasBeenSet() const { return m_allowedIPRangeHasBeenSet; }
54 
60  inline void SetAllowedIPRange(const Aws::String& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = value; }
61 
67  inline void SetAllowedIPRange(Aws::String&& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = std::move(value); }
68 
74  inline void SetAllowedIPRange(const char* value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange.assign(value); }
75 
81  inline WebhookAuthConfiguration& WithAllowedIPRange(const Aws::String& value) { SetAllowedIPRange(value); return *this;}
82 
88  inline WebhookAuthConfiguration& WithAllowedIPRange(Aws::String&& value) { SetAllowedIPRange(std::move(value)); return *this;}
89 
95  inline WebhookAuthConfiguration& WithAllowedIPRange(const char* value) { SetAllowedIPRange(value); return *this;}
96 
97 
102  inline const Aws::String& GetSecretToken() const{ return m_secretToken; }
103 
108  inline bool SecretTokenHasBeenSet() const { return m_secretTokenHasBeenSet; }
109 
114  inline void SetSecretToken(const Aws::String& value) { m_secretTokenHasBeenSet = true; m_secretToken = value; }
115 
120  inline void SetSecretToken(Aws::String&& value) { m_secretTokenHasBeenSet = true; m_secretToken = std::move(value); }
121 
126  inline void SetSecretToken(const char* value) { m_secretTokenHasBeenSet = true; m_secretToken.assign(value); }
127 
132  inline WebhookAuthConfiguration& WithSecretToken(const Aws::String& value) { SetSecretToken(value); return *this;}
133 
138  inline WebhookAuthConfiguration& WithSecretToken(Aws::String&& value) { SetSecretToken(std::move(value)); return *this;}
139 
144  inline WebhookAuthConfiguration& WithSecretToken(const char* value) { SetSecretToken(value); return *this;}
145 
146  private:
147 
148  Aws::String m_allowedIPRange;
149  bool m_allowedIPRangeHasBeenSet;
150 
151  Aws::String m_secretToken;
152  bool m_secretTokenHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace CodePipeline
157 } // namespace Aws
Aws::CodePipeline::Model::WebhookAuthConfiguration
Definition: WebhookAuthConfiguration.h:33
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetSecretToken
void SetSecretToken(const char *value)
Definition: WebhookAuthConfiguration.h:126
Aws::CodePipeline::Model::WebhookAuthConfiguration::SecretTokenHasBeenSet
bool SecretTokenHasBeenSet() const
Definition: WebhookAuthConfiguration.h:108
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithAllowedIPRange
WebhookAuthConfiguration & WithAllowedIPRange(const char *value)
Definition: WebhookAuthConfiguration.h:95
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
Aws::CodePipeline::Model::WebhookAuthConfiguration::WebhookAuthConfiguration
WebhookAuthConfiguration()
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithAllowedIPRange
WebhookAuthConfiguration & WithAllowedIPRange(Aws::String &&value)
Definition: WebhookAuthConfiguration.h:88
Aws::CodePipeline::Model::WebhookAuthConfiguration::AllowedIPRangeHasBeenSet
bool AllowedIPRangeHasBeenSet() const
Definition: WebhookAuthConfiguration.h:53
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::WebhookAuthConfiguration::WebhookAuthConfiguration
WebhookAuthConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithSecretToken
WebhookAuthConfiguration & WithSecretToken(const Aws::String &value)
Definition: WebhookAuthConfiguration.h:132
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetAllowedIPRange
void SetAllowedIPRange(Aws::String &&value)
Definition: WebhookAuthConfiguration.h:67
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetSecretToken
void SetSecretToken(const Aws::String &value)
Definition: WebhookAuthConfiguration.h:114
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetAllowedIPRange
void SetAllowedIPRange(const Aws::String &value)
Definition: WebhookAuthConfiguration.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodePipeline::Model::WebhookAuthConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodePipeline::Model::WebhookAuthConfiguration::GetAllowedIPRange
const Aws::String & GetAllowedIPRange() const
Definition: WebhookAuthConfiguration.h:46
Aws::CodePipeline::Model::WebhookAuthConfiguration::operator=
WebhookAuthConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithAllowedIPRange
WebhookAuthConfiguration & WithAllowedIPRange(const Aws::String &value)
Definition: WebhookAuthConfiguration.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithSecretToken
WebhookAuthConfiguration & WithSecretToken(Aws::String &&value)
Definition: WebhookAuthConfiguration.h:138
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetSecretToken
void SetSecretToken(Aws::String &&value)
Definition: WebhookAuthConfiguration.h:120
Aws::CodePipeline::Model::WebhookAuthConfiguration::SetAllowedIPRange
void SetAllowedIPRange(const char *value)
Definition: WebhookAuthConfiguration.h:74
Aws::CodePipeline::Model::WebhookAuthConfiguration::GetSecretToken
const Aws::String & GetSecretToken() const
Definition: WebhookAuthConfiguration.h:102
Aws::CodePipeline::Model::WebhookAuthConfiguration::WithSecretToken
WebhookAuthConfiguration & WithSecretToken(const char *value)
Definition: WebhookAuthConfiguration.h:144