AWS SDK for C++  1.9.1
AWS SDK for C++
DescribeProtectedResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Backup
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribeProtectedResource"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
40 
45  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
46 
51  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
52 
57  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
58 
63  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
64 
69  inline DescribeProtectedResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
70 
75  inline DescribeProtectedResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
76 
81  inline DescribeProtectedResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
82 
83  private:
84 
85  Aws::String m_resourceArn;
86  bool m_resourceArnHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace Backup
91 } // namespace Aws
Aws::Backup::Model::DescribeProtectedResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: DescribeProtectedResourceRequest.h:63
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::DescribeProtectedResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: DescribeProtectedResourceRequest.h:51
BackupRequest.h
Aws::Backup::Model::DescribeProtectedResourceRequest::WithResourceArn
DescribeProtectedResourceRequest & WithResourceArn(Aws::String &&value)
Definition: DescribeProtectedResourceRequest.h:75
Aws::Backup::Model::DescribeProtectedResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: DescribeProtectedResourceRequest.h:39
Aws::Backup::Model::DescribeProtectedResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::DescribeProtectedResourceRequest::WithResourceArn
DescribeProtectedResourceRequest & WithResourceArn(const char *value)
Definition: DescribeProtectedResourceRequest.h:81
Aws::Backup::Model::DescribeProtectedResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeProtectedResourceRequest.h:30
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::DescribeProtectedResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: DescribeProtectedResourceRequest.h:57
AWSString.h
Aws::Backup::Model::DescribeProtectedResourceRequest::DescribeProtectedResourceRequest
DescribeProtectedResourceRequest()
Aws::Backup::Model::DescribeProtectedResourceRequest::WithResourceArn
DescribeProtectedResourceRequest & WithResourceArn(const Aws::String &value)
Definition: DescribeProtectedResourceRequest.h:69
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::DescribeProtectedResourceRequest
Definition: DescribeProtectedResourceRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::DescribeProtectedResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: DescribeProtectedResourceRequest.h:45