AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateResourceDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrass/model/Resource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceDefinitionVersion"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
44 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
45 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
46 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
47 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
50 inline CreateResourceDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetResourceDefinitionId() const{ return m_resourceDefinitionId; }
58 inline bool ResourceDefinitionIdHasBeenSet() const { return m_resourceDefinitionIdHasBeenSet; }
59 inline void SetResourceDefinitionId(const Aws::String& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = value; }
60 inline void SetResourceDefinitionId(Aws::String&& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = std::move(value); }
61 inline void SetResourceDefinitionId(const char* value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId.assign(value); }
66
68
71 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
72 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
73 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
74 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
77 inline CreateResourceDefinitionVersionRequest& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
78 inline CreateResourceDefinitionVersionRequest& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_amznClientToken;
83 bool m_amznClientTokenHasBeenSet = false;
84
85 Aws::String m_resourceDefinitionId;
86 bool m_resourceDefinitionIdHasBeenSet = false;
87
88 Aws::Vector<Resource> m_resources;
89 bool m_resourcesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Greengrass
94} // namespace Aws
CreateResourceDefinitionVersionRequest & WithResourceDefinitionId(const Aws::String &value)
CreateResourceDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
CreateResourceDefinitionVersionRequest & AddResources(const Resource &value)
CreateResourceDefinitionVersionRequest & WithResourceDefinitionId(const char *value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceDefinitionVersionRequest & AddResources(Resource &&value)
CreateResourceDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
CreateResourceDefinitionVersionRequest & WithAmznClientToken(const char *value)
CreateResourceDefinitionVersionRequest & WithResources(Aws::Vector< Resource > &&value)
CreateResourceDefinitionVersionRequest & WithResources(const Aws::Vector< Resource > &value)
CreateResourceDefinitionVersionRequest & WithResourceDefinitionId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector