AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateResourceSetRequest.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/route53-recovery-readiness/Route53RecoveryReadinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53-recovery-readiness/model/Resource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Route53RecoveryReadiness
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceSet"; }
36
37 AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetResourceSetName() const{ return m_resourceSetName; }
45 inline bool ResourceSetNameHasBeenSet() const { return m_resourceSetNameHasBeenSet; }
46 inline void SetResourceSetName(const Aws::String& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = value; }
47 inline void SetResourceSetName(Aws::String&& value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName = std::move(value); }
48 inline void SetResourceSetName(const char* value) { m_resourceSetNameHasBeenSet = true; m_resourceSetName.assign(value); }
49 inline UpdateResourceSetRequest& WithResourceSetName(const Aws::String& value) { SetResourceSetName(value); return *this;}
50 inline UpdateResourceSetRequest& WithResourceSetName(Aws::String&& value) { SetResourceSetName(std::move(value)); return *this;}
51 inline UpdateResourceSetRequest& WithResourceSetName(const char* value) { SetResourceSetName(value); return *this;}
53
55
67 inline const Aws::String& GetResourceSetType() const{ return m_resourceSetType; }
68 inline bool ResourceSetTypeHasBeenSet() const { return m_resourceSetTypeHasBeenSet; }
69 inline void SetResourceSetType(const Aws::String& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = value; }
70 inline void SetResourceSetType(Aws::String&& value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType = std::move(value); }
71 inline void SetResourceSetType(const char* value) { m_resourceSetTypeHasBeenSet = true; m_resourceSetType.assign(value); }
72 inline UpdateResourceSetRequest& WithResourceSetType(const Aws::String& value) { SetResourceSetType(value); return *this;}
73 inline UpdateResourceSetRequest& WithResourceSetType(Aws::String&& value) { SetResourceSetType(std::move(value)); return *this;}
74 inline UpdateResourceSetRequest& WithResourceSetType(const char* value) { SetResourceSetType(value); return *this;}
76
78
81 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
82 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
83 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
84 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
85 inline UpdateResourceSetRequest& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
86 inline UpdateResourceSetRequest& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
87 inline UpdateResourceSetRequest& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
88 inline UpdateResourceSetRequest& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_resourceSetName;
93 bool m_resourceSetNameHasBeenSet = false;
94
95 Aws::String m_resourceSetType;
96 bool m_resourceSetTypeHasBeenSet = false;
97
98 Aws::Vector<Resource> m_resources;
99 bool m_resourcesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Route53RecoveryReadiness
104} // namespace Aws
UpdateResourceSetRequest & WithResourceSetType(const char *value)
AWS_ROUTE53RECOVERYREADINESS_API UpdateResourceSetRequest()
UpdateResourceSetRequest & WithResourceSetType(Aws::String &&value)
UpdateResourceSetRequest & WithResources(const Aws::Vector< Resource > &value)
UpdateResourceSetRequest & WithResourceSetType(const Aws::String &value)
UpdateResourceSetRequest & WithResourceSetName(Aws::String &&value)
UpdateResourceSetRequest & AddResources(const Resource &value)
UpdateResourceSetRequest & WithResourceSetName(const char *value)
AWS_ROUTE53RECOVERYREADINESS_API Aws::String SerializePayload() const override
UpdateResourceSetRequest & WithResourceSetName(const Aws::String &value)
UpdateResourceSetRequest & WithResources(Aws::Vector< Resource > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector