AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSafetyRuleRequest.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/route53-recovery-control-config/Route53RecoveryControlConfigRequest.h>
9#include <aws/route53-recovery-control-config/model/NewAssertionRule.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/route53-recovery-control-config/model/NewGatingRule.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Route53RecoveryControlConfig
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateSafetyRuleRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateSafetyRule"; }
39
40 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override;
41
42
44
47 inline const NewAssertionRule& GetAssertionRule() const{ return m_assertionRule; }
48 inline bool AssertionRuleHasBeenSet() const { return m_assertionRuleHasBeenSet; }
49 inline void SetAssertionRule(const NewAssertionRule& value) { m_assertionRuleHasBeenSet = true; m_assertionRule = value; }
50 inline void SetAssertionRule(NewAssertionRule&& value) { m_assertionRuleHasBeenSet = true; m_assertionRule = std::move(value); }
51 inline CreateSafetyRuleRequest& WithAssertionRule(const NewAssertionRule& value) { SetAssertionRule(value); return *this;}
52 inline CreateSafetyRuleRequest& WithAssertionRule(NewAssertionRule&& value) { SetAssertionRule(std::move(value)); return *this;}
54
56
61 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
64 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
65 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
66 inline CreateSafetyRuleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
67 inline CreateSafetyRuleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
68 inline CreateSafetyRuleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
70
72
75 inline const NewGatingRule& GetGatingRule() const{ return m_gatingRule; }
76 inline bool GatingRuleHasBeenSet() const { return m_gatingRuleHasBeenSet; }
77 inline void SetGatingRule(const NewGatingRule& value) { m_gatingRuleHasBeenSet = true; m_gatingRule = value; }
78 inline void SetGatingRule(NewGatingRule&& value) { m_gatingRuleHasBeenSet = true; m_gatingRule = std::move(value); }
79 inline CreateSafetyRuleRequest& WithGatingRule(const NewGatingRule& value) { SetGatingRule(value); return *this;}
80 inline CreateSafetyRuleRequest& WithGatingRule(NewGatingRule&& value) { SetGatingRule(std::move(value)); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline CreateSafetyRuleRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
92 inline CreateSafetyRuleRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
93 inline CreateSafetyRuleRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94 inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateSafetyRuleRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
97 inline CreateSafetyRuleRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline CreateSafetyRuleRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline CreateSafetyRuleRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 private:
102
103 NewAssertionRule m_assertionRule;
104 bool m_assertionRuleHasBeenSet = false;
105
106 Aws::String m_clientToken;
107 bool m_clientTokenHasBeenSet = false;
108
109 NewGatingRule m_gatingRule;
110 bool m_gatingRuleHasBeenSet = false;
111
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Route53RecoveryControlConfig
118} // namespace Aws
CreateSafetyRuleRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSafetyRuleRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override
AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateSafetyRuleRequest()
CreateSafetyRuleRequest & AddTags(const char *key, Aws::String &&value)
CreateSafetyRuleRequest & AddTags(const char *key, const char *value)
CreateSafetyRuleRequest & AddTags(Aws::String &&key, const char *value)
CreateSafetyRuleRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSafetyRuleRequest & WithGatingRule(NewGatingRule &&value)
CreateSafetyRuleRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSafetyRuleRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSafetyRuleRequest & WithClientToken(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSafetyRuleRequest & WithGatingRule(const NewGatingRule &value)
CreateSafetyRuleRequest & WithAssertionRule(NewAssertionRule &&value)
CreateSafetyRuleRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSafetyRuleRequest & WithAssertionRule(const NewAssertionRule &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