AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WebhookAuthConfiguration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodePipeline
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODEPIPELINE_API WebhookAuthConfiguration();
38 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetAllowedIPRange() const{ return m_allowedIPRange; }
48 inline bool AllowedIPRangeHasBeenSet() const { return m_allowedIPRangeHasBeenSet; }
49 inline void SetAllowedIPRange(const Aws::String& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = value; }
50 inline void SetAllowedIPRange(Aws::String&& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = std::move(value); }
51 inline void SetAllowedIPRange(const char* value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange.assign(value); }
52 inline WebhookAuthConfiguration& WithAllowedIPRange(const Aws::String& value) { SetAllowedIPRange(value); return *this;}
53 inline WebhookAuthConfiguration& WithAllowedIPRange(Aws::String&& value) { SetAllowedIPRange(std::move(value)); return *this;}
54 inline WebhookAuthConfiguration& WithAllowedIPRange(const char* value) { SetAllowedIPRange(value); return *this;}
56
58
71 inline const Aws::String& GetSecretToken() const{ return m_secretToken; }
72 inline bool SecretTokenHasBeenSet() const { return m_secretTokenHasBeenSet; }
73 inline void SetSecretToken(const Aws::String& value) { m_secretTokenHasBeenSet = true; m_secretToken = value; }
74 inline void SetSecretToken(Aws::String&& value) { m_secretTokenHasBeenSet = true; m_secretToken = std::move(value); }
75 inline void SetSecretToken(const char* value) { m_secretTokenHasBeenSet = true; m_secretToken.assign(value); }
76 inline WebhookAuthConfiguration& WithSecretToken(const Aws::String& value) { SetSecretToken(value); return *this;}
77 inline WebhookAuthConfiguration& WithSecretToken(Aws::String&& value) { SetSecretToken(std::move(value)); return *this;}
78 inline WebhookAuthConfiguration& WithSecretToken(const char* value) { SetSecretToken(value); return *this;}
80 private:
81
82 Aws::String m_allowedIPRange;
83 bool m_allowedIPRangeHasBeenSet = false;
84
85 Aws::String m_secretToken;
86 bool m_secretTokenHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodePipeline
91} // namespace Aws
AWS_CODEPIPELINE_API WebhookAuthConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
WebhookAuthConfiguration & WithAllowedIPRange(Aws::String &&value)
WebhookAuthConfiguration & WithAllowedIPRange(const char *value)
WebhookAuthConfiguration & WithSecretToken(Aws::String &&value)
WebhookAuthConfiguration & WithSecretToken(const Aws::String &value)
WebhookAuthConfiguration & WithAllowedIPRange(const Aws::String &value)
AWS_CODEPIPELINE_API WebhookAuthConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
WebhookAuthConfiguration & WithSecretToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue