1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/backup/Backup_EXPORTS.h>
8 #include <aws/backup/BackupRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_BACKUP_API StartReportJobRequest : public BackupRequest
23   {
24   public:
25     StartReportJobRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "StartReportJob"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The unique name of a report plan.</p>
38      */
GetReportPlanName()39     inline const Aws::String& GetReportPlanName() const{ return m_reportPlanName; }
40 
41     /**
42      * <p>The unique name of a report plan.</p>
43      */
ReportPlanNameHasBeenSet()44     inline bool ReportPlanNameHasBeenSet() const { return m_reportPlanNameHasBeenSet; }
45 
46     /**
47      * <p>The unique name of a report plan.</p>
48      */
SetReportPlanName(const Aws::String & value)49     inline void SetReportPlanName(const Aws::String& value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName = value; }
50 
51     /**
52      * <p>The unique name of a report plan.</p>
53      */
SetReportPlanName(Aws::String && value)54     inline void SetReportPlanName(Aws::String&& value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName = std::move(value); }
55 
56     /**
57      * <p>The unique name of a report plan.</p>
58      */
SetReportPlanName(const char * value)59     inline void SetReportPlanName(const char* value) { m_reportPlanNameHasBeenSet = true; m_reportPlanName.assign(value); }
60 
61     /**
62      * <p>The unique name of a report plan.</p>
63      */
WithReportPlanName(const Aws::String & value)64     inline StartReportJobRequest& WithReportPlanName(const Aws::String& value) { SetReportPlanName(value); return *this;}
65 
66     /**
67      * <p>The unique name of a report plan.</p>
68      */
WithReportPlanName(Aws::String && value)69     inline StartReportJobRequest& WithReportPlanName(Aws::String&& value) { SetReportPlanName(std::move(value)); return *this;}
70 
71     /**
72      * <p>The unique name of a report plan.</p>
73      */
WithReportPlanName(const char * value)74     inline StartReportJobRequest& WithReportPlanName(const char* value) { SetReportPlanName(value); return *this;}
75 
76 
77     /**
78      * <p>A customer-chosen string that you can use to distinguish between otherwise
79      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
80      * request with the same idempotency token results in a success message with no
81      * action taken.</p>
82      */
GetIdempotencyToken()83     inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
84 
85     /**
86      * <p>A customer-chosen string that you can use to distinguish between otherwise
87      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
88      * request with the same idempotency token results in a success message with no
89      * action taken.</p>
90      */
IdempotencyTokenHasBeenSet()91     inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
92 
93     /**
94      * <p>A customer-chosen string that you can use to distinguish between otherwise
95      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
96      * request with the same idempotency token results in a success message with no
97      * action taken.</p>
98      */
SetIdempotencyToken(const Aws::String & value)99     inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
100 
101     /**
102      * <p>A customer-chosen string that you can use to distinguish between otherwise
103      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
104      * request with the same idempotency token results in a success message with no
105      * action taken.</p>
106      */
SetIdempotencyToken(Aws::String && value)107     inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
108 
109     /**
110      * <p>A customer-chosen string that you can use to distinguish between otherwise
111      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
112      * request with the same idempotency token results in a success message with no
113      * action taken.</p>
114      */
SetIdempotencyToken(const char * value)115     inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
116 
117     /**
118      * <p>A customer-chosen string that you can use to distinguish between otherwise
119      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
120      * request with the same idempotency token results in a success message with no
121      * action taken.</p>
122      */
WithIdempotencyToken(const Aws::String & value)123     inline StartReportJobRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
124 
125     /**
126      * <p>A customer-chosen string that you can use to distinguish between otherwise
127      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
128      * request with the same idempotency token results in a success message with no
129      * action taken.</p>
130      */
WithIdempotencyToken(Aws::String && value)131     inline StartReportJobRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
132 
133     /**
134      * <p>A customer-chosen string that you can use to distinguish between otherwise
135      * identical calls to <code>StartReportJobInput</code>. Retrying a successful
136      * request with the same idempotency token results in a success message with no
137      * action taken.</p>
138      */
WithIdempotencyToken(const char * value)139     inline StartReportJobRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
140 
141   private:
142 
143     Aws::String m_reportPlanName;
144     bool m_reportPlanNameHasBeenSet;
145 
146     Aws::String m_idempotencyToken;
147     bool m_idempotencyTokenHasBeenSet;
148   };
149 
150 } // namespace Model
151 } // namespace Backup
152 } // namespace Aws
153