AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AllowedIPRangeT = Aws::String>
50 void SetAllowedIPRange(AllowedIPRangeT&& value) { m_allowedIPRangeHasBeenSet = true; m_allowedIPRange = std::forward<AllowedIPRangeT>(value); }
51 template<typename AllowedIPRangeT = Aws::String>
52 WebhookAuthConfiguration& WithAllowedIPRange(AllowedIPRangeT&& value) { SetAllowedIPRange(std::forward<AllowedIPRangeT>(value)); return *this;}
54
56
69 inline const Aws::String& GetSecretToken() const { return m_secretToken; }
70 inline bool SecretTokenHasBeenSet() const { return m_secretTokenHasBeenSet; }
71 template<typename SecretTokenT = Aws::String>
72 void SetSecretToken(SecretTokenT&& value) { m_secretTokenHasBeenSet = true; m_secretToken = std::forward<SecretTokenT>(value); }
73 template<typename SecretTokenT = Aws::String>
74 WebhookAuthConfiguration& WithSecretToken(SecretTokenT&& value) { SetSecretToken(std::forward<SecretTokenT>(value)); return *this;}
76 private:
77
78 Aws::String m_allowedIPRange;
79 bool m_allowedIPRangeHasBeenSet = false;
80
81 Aws::String m_secretToken;
82 bool m_secretTokenHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CodePipeline
87} // namespace Aws
AWS_CODEPIPELINE_API WebhookAuthConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
WebhookAuthConfiguration & WithSecretToken(SecretTokenT &&value)
AWS_CODEPIPELINE_API WebhookAuthConfiguration()=default
WebhookAuthConfiguration & WithAllowedIPRange(AllowedIPRangeT &&value)
AWS_CODEPIPELINE_API WebhookAuthConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue