AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Contributor.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/shield/Shield_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Shield {
20namespace Model {
21
29 public:
30 AWS_SHIELD_API Contributor() = default;
31 AWS_SHIELD_API Contributor(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 Contributor& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
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) {
65 m_valueHasBeenSet = true;
66 m_value = value;
67 }
68 inline Contributor& WithValue(long long value) {
69 SetValue(value);
70 return *this;
71 }
73 private:
74 Aws::String m_name;
75
76 long long m_value{0};
77 bool m_nameHasBeenSet = false;
78 bool m_valueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Shield
83} // namespace Aws
Contributor & WithValue(long long value)
Definition Contributor.h:68
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Contributor.h:43
AWS_SHIELD_API Contributor & operator=(Aws::Utils::Json::JsonView jsonValue)
Contributor & WithName(NameT &&value)
Definition Contributor.h:51
void SetName(NameT &&value)
Definition Contributor.h:46
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