AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartDiscoveryJobRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/TagListEntry.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace DataSync
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATASYNC_API StartDiscoveryJobRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartDiscoveryJob"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetStorageSystemArn() const{ return m_storageSystemArn; }
46 inline bool StorageSystemArnHasBeenSet() const { return m_storageSystemArnHasBeenSet; }
47 inline void SetStorageSystemArn(const Aws::String& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = value; }
48 inline void SetStorageSystemArn(Aws::String&& value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn = std::move(value); }
49 inline void SetStorageSystemArn(const char* value) { m_storageSystemArnHasBeenSet = true; m_storageSystemArn.assign(value); }
51 inline StartDiscoveryJobRequest& WithStorageSystemArn(Aws::String&& value) { SetStorageSystemArn(std::move(value)); return *this;}
52 inline StartDiscoveryJobRequest& WithStorageSystemArn(const char* value) { SetStorageSystemArn(value); return *this;}
54
56
63 inline int GetCollectionDurationMinutes() const{ return m_collectionDurationMinutes; }
64 inline bool CollectionDurationMinutesHasBeenSet() const { return m_collectionDurationMinutesHasBeenSet; }
65 inline void SetCollectionDurationMinutes(int value) { m_collectionDurationMinutesHasBeenSet = true; m_collectionDurationMinutes = value; }
68
70
75 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
78 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 inline StartDiscoveryJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline StartDiscoveryJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline StartDiscoveryJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
90 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline StartDiscoveryJobRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
95 inline StartDiscoveryJobRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
96 inline StartDiscoveryJobRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline StartDiscoveryJobRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_storageSystemArn;
102 bool m_storageSystemArnHasBeenSet = false;
103
104 int m_collectionDurationMinutes;
105 bool m_collectionDurationMinutesHasBeenSet = false;
106
107 Aws::String m_clientToken;
108 bool m_clientTokenHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace DataSync
116} // namespace Aws
StartDiscoveryJobRequest & WithStorageSystemArn(const char *value)
void SetTags(Aws::Vector< TagListEntry > &&value)
StartDiscoveryJobRequest & WithTags(Aws::Vector< TagListEntry > &&value)
StartDiscoveryJobRequest & WithCollectionDurationMinutes(int value)
StartDiscoveryJobRequest & WithClientToken(const char *value)
StartDiscoveryJobRequest & WithTags(const Aws::Vector< TagListEntry > &value)
StartDiscoveryJobRequest & AddTags(TagListEntry &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TagListEntry > & GetTags() const
StartDiscoveryJobRequest & AddTags(const TagListEntry &value)
StartDiscoveryJobRequest & WithStorageSystemArn(const Aws::String &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartDiscoveryJobRequest & WithStorageSystemArn(Aws::String &&value)
StartDiscoveryJobRequest & WithClientToken(const Aws::String &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
StartDiscoveryJobRequest & WithClientToken(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