AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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 <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodePipeline {
20namespace Model {
21
29 public:
30 AWS_CODEPIPELINE_API WebhookAuthConfiguration() = default;
31 AWS_CODEPIPELINE_API WebhookAuthConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEPIPELINE_API WebhookAuthConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEPIPELINE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline const Aws::String& GetAllowedIPRange() const { return m_allowedIPRange; }
42 inline bool AllowedIPRangeHasBeenSet() const { return m_allowedIPRangeHasBeenSet; }
43 template <typename AllowedIPRangeT = Aws::String>
44 void SetAllowedIPRange(AllowedIPRangeT&& value) {
45 m_allowedIPRangeHasBeenSet = true;
46 m_allowedIPRange = std::forward<AllowedIPRangeT>(value);
47 }
48 template <typename AllowedIPRangeT = Aws::String>
49 WebhookAuthConfiguration& WithAllowedIPRange(AllowedIPRangeT&& value) {
50 SetAllowedIPRange(std::forward<AllowedIPRangeT>(value));
51 return *this;
52 }
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) {
73 m_secretTokenHasBeenSet = true;
74 m_secretToken = std::forward<SecretTokenT>(value);
75 }
76 template <typename SecretTokenT = Aws::String>
78 SetSecretToken(std::forward<SecretTokenT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_allowedIPRange;
84
85 Aws::String m_secretToken;
86 bool m_allowedIPRangeHasBeenSet = false;
87 bool m_secretTokenHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace CodePipeline
92} // namespace Aws
AWS_CODEPIPELINE_API WebhookAuthConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WebhookAuthConfiguration & WithSecretToken(SecretTokenT &&value)
AWS_CODEPIPELINE_API WebhookAuthConfiguration()=default
AWS_CODEPIPELINE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WebhookAuthConfiguration & WithAllowedIPRange(AllowedIPRangeT &&value)
AWS_CODEPIPELINE_API WebhookAuthConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String