7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/Effect.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/lexv2-models/model/Principal.h>
54 inline void SetResourceArn(
const char* value) { m_resourceArnHasBeenSet =
true; m_resourceArn.assign(value); }
72 inline void SetStatementId(
const char* value) { m_statementIdHasBeenSet =
true; m_statementId.assign(value); }
84 inline void SetEffect(
const Effect& value) { m_effectHasBeenSet =
true; m_effect = value; }
85 inline void SetEffect(
Effect&& value) { m_effectHasBeenSet =
true; m_effect = std::move(value); }
161 inline void SetExpectedRevisionId(
const char* value) { m_expectedRevisionIdHasBeenSet =
true; m_expectedRevisionId.assign(value); }
169 bool m_resourceArnHasBeenSet =
false;
172 bool m_statementIdHasBeenSet =
false;
175 bool m_effectHasBeenSet =
false;
178 bool m_principalHasBeenSet =
false;
181 bool m_actionHasBeenSet =
false;
184 bool m_conditionHasBeenSet =
false;
187 bool m_expectedRevisionIdHasBeenSet =
false;
void SetExpectedRevisionId(const Aws::String &value)
void SetAction(const Aws::Vector< Aws::String > &value)
void SetStatementId(Aws::String &&value)
CreateResourcePolicyStatementRequest & AddCondition(const Aws::String &key, const Aws::Map< Aws::String, Aws::String > &value)
void SetStatementId(const Aws::String &value)
CreateResourcePolicyStatementRequest & WithStatementId(const char *value)
CreateResourcePolicyStatementRequest & WithResourceArn(const char *value)
void SetResourceArn(const char *value)
CreateResourcePolicyStatementRequest & WithStatementId(const Aws::String &value)
CreateResourcePolicyStatementRequest & AddCondition(const char *key, Aws::Map< Aws::String, Aws::String > &&value)
const Effect & GetEffect() const
void SetAction(Aws::Vector< Aws::String > &&value)
CreateResourcePolicyStatementRequest & WithCondition(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &&value)
CreateResourcePolicyStatementRequest & WithPrincipal(Aws::Vector< Principal > &&value)
CreateResourcePolicyStatementRequest & AddAction(const char *value)
CreateResourcePolicyStatementRequest & WithResourceArn(Aws::String &&value)
CreateResourcePolicyStatementRequest & AddAction(Aws::String &&value)
bool ActionHasBeenSet() const
AWS_LEXMODELSV2_API CreateResourcePolicyStatementRequest()
bool PrincipalHasBeenSet() const
bool ResourceArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetAction() const
bool EffectHasBeenSet() const
void SetResourceArn(const Aws::String &value)
CreateResourcePolicyStatementRequest & WithStatementId(Aws::String &&value)
CreateResourcePolicyStatementRequest & AddPrincipal(const Principal &value)
CreateResourcePolicyStatementRequest & AddCondition(Aws::String &&key, const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetCondition() const
CreateResourcePolicyStatementRequest & AddCondition(const Aws::String &key, Aws::Map< Aws::String, Aws::String > &&value)
CreateResourcePolicyStatementRequest & WithAction(const Aws::Vector< Aws::String > &value)
bool ExpectedRevisionIdHasBeenSet() const
CreateResourcePolicyStatementRequest & WithExpectedRevisionId(Aws::String &&value)
CreateResourcePolicyStatementRequest & AddCondition(Aws::String &&key, Aws::Map< Aws::String, Aws::String > &&value)
CreateResourcePolicyStatementRequest & AddAction(const Aws::String &value)
void SetExpectedRevisionId(const char *value)
void SetPrincipal(const Aws::Vector< Principal > &value)
void SetPrincipal(Aws::Vector< Principal > &&value)
CreateResourcePolicyStatementRequest & WithCondition(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &value)
CreateResourcePolicyStatementRequest & AddPrincipal(Principal &&value)
CreateResourcePolicyStatementRequest & WithPrincipal(const Aws::Vector< Principal > &value)
void SetEffect(const Effect &value)
CreateResourcePolicyStatementRequest & AddCondition(const char *key, const Aws::Map< Aws::String, Aws::String > &value)
CreateResourcePolicyStatementRequest & WithAction(Aws::Vector< Aws::String > &&value)
void SetEffect(Effect &&value)
void SetResourceArn(Aws::String &&value)
AWS_LEXMODELSV2_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateResourcePolicyStatementRequest & WithEffect(Effect &&value)
bool StatementIdHasBeenSet() const
CreateResourcePolicyStatementRequest & WithExpectedRevisionId(const Aws::String &value)
CreateResourcePolicyStatementRequest & WithEffect(const Effect &value)
const Aws::String & GetResourceArn() const
const Aws::String & GetStatementId() const
CreateResourcePolicyStatementRequest & WithResourceArn(const Aws::String &value)
void SetCondition(Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &&value)
bool ConditionHasBeenSet() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetCondition(const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > &value)
CreateResourcePolicyStatementRequest & WithExpectedRevisionId(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Principal > & GetPrincipal() const
const Aws::String & GetExpectedRevisionId() const
void SetStatementId(const char *value)
void SetExpectedRevisionId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector