AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceIdPreference.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/model/ResourceIdType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticfilesystem/model/Resource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EFS
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_EFS_API ResourceIdPreference();
42
43
45
49 inline const ResourceIdType& GetResourceIdType() const{ return m_resourceIdType; }
50 inline bool ResourceIdTypeHasBeenSet() const { return m_resourceIdTypeHasBeenSet; }
51 inline void SetResourceIdType(const ResourceIdType& value) { m_resourceIdTypeHasBeenSet = true; m_resourceIdType = value; }
52 inline void SetResourceIdType(ResourceIdType&& value) { m_resourceIdTypeHasBeenSet = true; m_resourceIdType = std::move(value); }
53 inline ResourceIdPreference& WithResourceIdType(const ResourceIdType& value) { SetResourceIdType(value); return *this;}
54 inline ResourceIdPreference& WithResourceIdType(ResourceIdType&& value) { SetResourceIdType(std::move(value)); return *this;}
56
58
62 inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
63 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
64 inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
65 inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
66 inline ResourceIdPreference& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
67 inline ResourceIdPreference& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
68 inline ResourceIdPreference& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
69 inline ResourceIdPreference& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
71 private:
72
73 ResourceIdType m_resourceIdType;
74 bool m_resourceIdTypeHasBeenSet = false;
75
76 Aws::Vector<Resource> m_resources;
77 bool m_resourcesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EFS
82} // namespace Aws
AWS_EFS_API ResourceIdPreference & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceIdPreference & AddResources(Resource &&value)
ResourceIdPreference & WithResources(Aws::Vector< Resource > &&value)
ResourceIdPreference & WithResourceIdType(const ResourceIdType &value)
const Aws::Vector< Resource > & GetResources() const
AWS_EFS_API ResourceIdPreference(Aws::Utils::Json::JsonView jsonValue)
ResourceIdPreference & AddResources(const Resource &value)
ResourceIdPreference & WithResources(const Aws::Vector< Resource > &value)
void SetResources(const Aws::Vector< Resource > &value)
void SetResources(Aws::Vector< Resource > &&value)
void SetResourceIdType(ResourceIdType &&value)
void SetResourceIdType(const ResourceIdType &value)
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceIdPreference & WithResourceIdType(ResourceIdType &&value)
const ResourceIdType & GetResourceIdType() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue