AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Contributor.h
1
6#pragma once
7#include <aws/shield/Shield_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 Shield
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SHIELD_API Contributor() = default;
36 AWS_SHIELD_API Contributor(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 Contributor& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
62 inline long long GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
65 inline Contributor& WithValue(long long value) { SetValue(value); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 long long m_value{0};
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Shield
78} // namespace Aws
Contributor & WithValue(long long value)
Definition Contributor.h:65
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Contributor.h:49
AWS_SHIELD_API Contributor & operator=(Aws::Utils::Json::JsonView jsonValue)
Contributor & WithName(NameT &&value)
Definition Contributor.h:54
void SetName(NameT &&value)
Definition Contributor.h:52
AWS_SHIELD_API Contributor()=default
AWS_SHIELD_API Contributor(Aws::Utils::Json::JsonView jsonValue)
void SetValue(long long value)
Definition Contributor.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue