AWS SDK for C++  1.9.106
AWS SDK for C++
ReviewPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MTurk
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
48 
53  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
54 
59  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
60 
65  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
66 
71  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
72 
77  inline ReviewPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
78 
83  inline ReviewPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
84 
89  inline ReviewPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
90 
91 
95  inline const Aws::Vector<PolicyParameter>& GetParameters() const{ return m_parameters; }
96 
100  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
101 
105  inline void SetParameters(const Aws::Vector<PolicyParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
106 
110  inline void SetParameters(Aws::Vector<PolicyParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
111 
115  inline ReviewPolicy& WithParameters(const Aws::Vector<PolicyParameter>& value) { SetParameters(value); return *this;}
116 
120  inline ReviewPolicy& WithParameters(Aws::Vector<PolicyParameter>&& value) { SetParameters(std::move(value)); return *this;}
121 
125  inline ReviewPolicy& AddParameters(const PolicyParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
126 
130  inline ReviewPolicy& AddParameters(PolicyParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
131 
132  private:
133 
134  Aws::String m_policyName;
135  bool m_policyNameHasBeenSet;
136 
137  Aws::Vector<PolicyParameter> m_parameters;
138  bool m_parametersHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace MTurk
143 } // namespace Aws
Aws::MTurk::Model::ReviewPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MTurk::Model::ReviewPolicy::SetPolicyName
void SetPolicyName(const char *value)
Definition: ReviewPolicy.h:71
Aws::MTurk::Model::ReviewPolicy::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: ReviewPolicy.h:47
Aws::MTurk::Model::ReviewPolicy::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: ReviewPolicy.h:100
Aws::MTurk::Model::ReviewPolicy::WithPolicyName
ReviewPolicy & WithPolicyName(const char *value)
Definition: ReviewPolicy.h:89
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
PolicyParameter.h
AWSVector.h
Aws::MTurk::Model::ReviewPolicy::WithParameters
ReviewPolicy & WithParameters(Aws::Vector< PolicyParameter > &&value)
Definition: ReviewPolicy.h:120
Aws::MTurk::Model::ReviewPolicy::SetParameters
void SetParameters(Aws::Vector< PolicyParameter > &&value)
Definition: ReviewPolicy.h:110
Aws::MTurk::Model::ReviewPolicy::WithParameters
ReviewPolicy & WithParameters(const Aws::Vector< PolicyParameter > &value)
Definition: ReviewPolicy.h:115
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MTurk::Model::ReviewPolicy::ReviewPolicy
ReviewPolicy()
Aws::MTurk::Model::ReviewPolicy::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: ReviewPolicy.h:65
Aws::MTurk::Model::ReviewPolicy::GetParameters
const Aws::Vector< PolicyParameter > & GetParameters() const
Definition: ReviewPolicy.h:95
Aws::MTurk::Model::ReviewPolicy::WithPolicyName
ReviewPolicy & WithPolicyName(const Aws::String &value)
Definition: ReviewPolicy.h:77
MTurk_EXPORTS.h
Aws::MTurk::Model::ReviewPolicy::WithPolicyName
ReviewPolicy & WithPolicyName(Aws::String &&value)
Definition: ReviewPolicy.h:83
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::ReviewPolicy::ReviewPolicy
ReviewPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ReviewPolicy::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: ReviewPolicy.h:59
Aws::MTurk::Model::ReviewPolicy::AddParameters
ReviewPolicy & AddParameters(const PolicyParameter &value)
Definition: ReviewPolicy.h:125
Aws::MTurk::Model::ReviewPolicy::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: ReviewPolicy.h:53
Aws::MTurk::Model::PolicyParameter
Definition: PolicyParameter.h:34
Aws::MTurk::Model::ReviewPolicy
Definition: ReviewPolicy.h:35
Aws::MTurk::Model::ReviewPolicy::operator=
ReviewPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MTurk::Model::ReviewPolicy::SetParameters
void SetParameters(const Aws::Vector< PolicyParameter > &value)
Definition: ReviewPolicy.h:105
Aws::MTurk::Model::ReviewPolicy::AddParameters
ReviewPolicy & AddParameters(PolicyParameter &&value)
Definition: ReviewPolicy.h:130