AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
51 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
52 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
53 inline ReviewPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
54 inline ReviewPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
55 inline ReviewPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
57
59
62 inline const Aws::Vector<PolicyParameter>& GetParameters() const{ return m_parameters; }
63 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
64 inline void SetParameters(const Aws::Vector<PolicyParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
65 inline void SetParameters(Aws::Vector<PolicyParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
66 inline ReviewPolicy& WithParameters(const Aws::Vector<PolicyParameter>& value) { SetParameters(value); return *this;}
67 inline ReviewPolicy& WithParameters(Aws::Vector<PolicyParameter>&& value) { SetParameters(std::move(value)); return *this;}
68 inline ReviewPolicy& AddParameters(const PolicyParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
69 inline ReviewPolicy& AddParameters(PolicyParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_policyName;
74 bool m_policyNameHasBeenSet = false;
75
77 bool m_parametersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace MTurk
82} // namespace Aws
ReviewPolicy & AddParameters(PolicyParameter &&value)
void SetPolicyName(Aws::String &&value)
ReviewPolicy & WithPolicyName(const Aws::String &value)
ReviewPolicy & WithPolicyName(const char *value)
ReviewPolicy & WithParameters(const Aws::Vector< PolicyParameter > &value)
AWS_MTURK_API Aws::Utils::Json::JsonValue Jsonize() const
ReviewPolicy & AddParameters(const PolicyParameter &value)
void SetPolicyName(const Aws::String &value)
const Aws::Vector< PolicyParameter > & GetParameters() const
void SetParameters(const Aws::Vector< PolicyParameter > &value)
const Aws::String & GetPolicyName() const
ReviewPolicy & WithPolicyName(Aws::String &&value)
void SetPolicyName(const char *value)
AWS_MTURK_API ReviewPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(Aws::Vector< PolicyParameter > &&value)
ReviewPolicy & WithParameters(Aws::Vector< PolicyParameter > &&value)
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