AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReviewPolicy.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mturk-requester/model/PolicyParameter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MTurk
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MTURK_API ReviewPolicy() = default;
38 AWS_MTURK_API ReviewPolicy(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetPolicyName() const { return m_policyName; }
49 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 template<typename PolicyNameT = Aws::String>
51 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
52 template<typename PolicyNameT = Aws::String>
53 ReviewPolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<PolicyParameter>& GetParameters() const { return m_parameters; }
61 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
62 template<typename ParametersT = Aws::Vector<PolicyParameter>>
63 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
64 template<typename ParametersT = Aws::Vector<PolicyParameter>>
65 ReviewPolicy& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
66 template<typename ParametersT = PolicyParameter>
67 ReviewPolicy& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
69 private:
70
71 Aws::String m_policyName;
72 bool m_policyNameHasBeenSet = false;
73
75 bool m_parametersHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace MTurk
80} // namespace Aws
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PolicyParameter > & GetParameters() const
void SetParameters(ParametersT &&value)
AWS_MTURK_API ReviewPolicy()=default
const Aws::String & GetPolicyName() const
ReviewPolicy & WithPolicyName(PolicyNameT &&value)
ReviewPolicy & AddParameters(ParametersT &&value)
ReviewPolicy & WithParameters(ParametersT &&value)
void SetPolicyName(PolicyNameT &&value)
AWS_MTURK_API ReviewPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_MTURK_API ReviewPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue