AWS SDK for C++  1.9.103
AWS SDK for C++
DeleteSnapshotCopyGrantRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DeleteSnapshotCopyGrant"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetSnapshotCopyGrantName() const{ return m_snapshotCopyGrantName; }
47 
51  inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
52 
56  inline void SetSnapshotCopyGrantName(const Aws::String& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = value; }
57 
61  inline void SetSnapshotCopyGrantName(Aws::String&& value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName = std::move(value); }
62 
66  inline void SetSnapshotCopyGrantName(const char* value) { m_snapshotCopyGrantNameHasBeenSet = true; m_snapshotCopyGrantName.assign(value); }
67 
71  inline DeleteSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(const Aws::String& value) { SetSnapshotCopyGrantName(value); return *this;}
72 
76  inline DeleteSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(Aws::String&& value) { SetSnapshotCopyGrantName(std::move(value)); return *this;}
77 
81  inline DeleteSnapshotCopyGrantRequest& WithSnapshotCopyGrantName(const char* value) { SetSnapshotCopyGrantName(value); return *this;}
82 
83  private:
84 
85  Aws::String m_snapshotCopyGrantName;
86  bool m_snapshotCopyGrantNameHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace Redshift
91 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteSnapshotCopyGrantRequest.h:34
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::WithSnapshotCopyGrantName
DeleteSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(const char *value)
Definition: DeleteSnapshotCopyGrantRequest.h:81
RedshiftRequest.h
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::WithSnapshotCopyGrantName
DeleteSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(const Aws::String &value)
Definition: DeleteSnapshotCopyGrantRequest.h:71
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::GetSnapshotCopyGrantName
const Aws::String & GetSnapshotCopyGrantName() const
Definition: DeleteSnapshotCopyGrantRequest.h:46
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const Aws::String &value)
Definition: DeleteSnapshotCopyGrantRequest.h:56
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::SnapshotCopyGrantNameHasBeenSet
bool SnapshotCopyGrantNameHasBeenSet() const
Definition: DeleteSnapshotCopyGrantRequest.h:51
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(Aws::String &&value)
Definition: DeleteSnapshotCopyGrantRequest.h:61
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest
Definition: DeleteSnapshotCopyGrantRequest.h:26
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::WithSnapshotCopyGrantName
DeleteSnapshotCopyGrantRequest & WithSnapshotCopyGrantName(Aws::String &&value)
Definition: DeleteSnapshotCopyGrantRequest.h:76
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::DeleteSnapshotCopyGrantRequest
DeleteSnapshotCopyGrantRequest()
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::SetSnapshotCopyGrantName
void SetSnapshotCopyGrantName(const char *value)
Definition: DeleteSnapshotCopyGrantRequest.h:66
Aws::Redshift::Model::DeleteSnapshotCopyGrantRequest::SerializePayload
Aws::String SerializePayload() const override