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/secretsmanager/SecretsManager_EXPORTS.h>
8 #include <aws/secretsmanager/SecretsManagerRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SecretsManager
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_SECRETSMANAGER_API StopReplicationToReplicaRequest : public SecretsManagerRequest
22   {
23   public:
24     StopReplicationToReplicaRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "StopReplicationToReplica"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
39      * <code>SecretId</code>.</p>
40      */
GetSecretId()41     inline const Aws::String& GetSecretId() const{ return m_secretId; }
42 
43     /**
44      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
45      * <code>SecretId</code>.</p>
46      */
SecretIdHasBeenSet()47     inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
48 
49     /**
50      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
51      * <code>SecretId</code>.</p>
52      */
SetSecretId(const Aws::String & value)53     inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
54 
55     /**
56      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
57      * <code>SecretId</code>.</p>
58      */
SetSecretId(Aws::String && value)59     inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
60 
61     /**
62      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
63      * <code>SecretId</code>.</p>
64      */
SetSecretId(const char * value)65     inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
66 
67     /**
68      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
69      * <code>SecretId</code>.</p>
70      */
WithSecretId(const Aws::String & value)71     inline StopReplicationToReplicaRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
72 
73     /**
74      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
75      * <code>SecretId</code>.</p>
76      */
WithSecretId(Aws::String && value)77     inline StopReplicationToReplicaRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
78 
79     /**
80      * <p>Response to <code>StopReplicationToReplica</code> of a secret, based on the
81      * <code>SecretId</code>.</p>
82      */
WithSecretId(const char * value)83     inline StopReplicationToReplicaRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
84 
85   private:
86 
87     Aws::String m_secretId;
88     bool m_secretIdHasBeenSet;
89   };
90 
91 } // namespace Model
92 } // namespace SecretsManager
93 } // namespace Aws
94