AWS SDK for C++  1.9.40
AWS SDK for C++
DescribeProtectedResourceResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace Backup
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
41 
46  inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; }
47 
52  inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); }
53 
58  inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); }
59 
64  inline DescribeProtectedResourceResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
65 
70  inline DescribeProtectedResourceResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
71 
76  inline DescribeProtectedResourceResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
77 
78 
83  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
84 
89  inline void SetResourceType(const Aws::String& value) { m_resourceType = value; }
90 
95  inline void SetResourceType(Aws::String&& value) { m_resourceType = std::move(value); }
96 
101  inline void SetResourceType(const char* value) { m_resourceType.assign(value); }
102 
107  inline DescribeProtectedResourceResult& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
108 
113  inline DescribeProtectedResourceResult& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
114 
119  inline DescribeProtectedResourceResult& WithResourceType(const char* value) { SetResourceType(value); return *this;}
120 
121 
128  inline const Aws::Utils::DateTime& GetLastBackupTime() const{ return m_lastBackupTime; }
129 
136  inline void SetLastBackupTime(const Aws::Utils::DateTime& value) { m_lastBackupTime = value; }
137 
144  inline void SetLastBackupTime(Aws::Utils::DateTime&& value) { m_lastBackupTime = std::move(value); }
145 
152  inline DescribeProtectedResourceResult& WithLastBackupTime(const Aws::Utils::DateTime& value) { SetLastBackupTime(value); return *this;}
153 
160  inline DescribeProtectedResourceResult& WithLastBackupTime(Aws::Utils::DateTime&& value) { SetLastBackupTime(std::move(value)); return *this;}
161 
162  private:
163 
164  Aws::String m_resourceArn;
165 
166  Aws::String m_resourceType;
167 
168  Aws::Utils::DateTime m_lastBackupTime;
169  };
170 
171 } // namespace Model
172 } // namespace Backup
173 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: DescribeProtectedResourceResult.h:46
Aws::Backup::Model::DescribeProtectedResourceResult::SetLastBackupTime
void SetLastBackupTime(const Aws::Utils::DateTime &value)
Definition: DescribeProtectedResourceResult.h:136
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceArn
DescribeProtectedResourceResult & WithResourceArn(const Aws::String &value)
Definition: DescribeProtectedResourceResult.h:64
Aws::Backup::Model::DescribeProtectedResourceResult::SetLastBackupTime
void SetLastBackupTime(Aws::Utils::DateTime &&value)
Definition: DescribeProtectedResourceResult.h:144
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: DescribeProtectedResourceResult.h:89
Aws::Backup::Model::DescribeProtectedResourceResult::operator=
DescribeProtectedResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
DateTime.h
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceType
void SetResourceType(const char *value)
Definition: DescribeProtectedResourceResult.h:101
Aws::Backup::Model::DescribeProtectedResourceResult::DescribeProtectedResourceResult
DescribeProtectedResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceType
DescribeProtectedResourceResult & WithResourceType(const Aws::String &value)
Definition: DescribeProtectedResourceResult.h:107
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: DescribeProtectedResourceResult.h:52
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceArn
DescribeProtectedResourceResult & WithResourceArn(Aws::String &&value)
Definition: DescribeProtectedResourceResult.h:70
Aws::Backup::Model::DescribeProtectedResourceResult::GetResourceType
const Aws::String & GetResourceType() const
Definition: DescribeProtectedResourceResult.h:83
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceType
DescribeProtectedResourceResult & WithResourceType(Aws::String &&value)
Definition: DescribeProtectedResourceResult.h:113
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: DescribeProtectedResourceResult.h:95
Aws::Backup::Model::DescribeProtectedResourceResult::WithLastBackupTime
DescribeProtectedResourceResult & WithLastBackupTime(const Aws::Utils::DateTime &value)
Definition: DescribeProtectedResourceResult.h:152
AWSString.h
Aws::Backup::Model::DescribeProtectedResourceResult::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: DescribeProtectedResourceResult.h:40
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::DescribeProtectedResourceResult::SetResourceArn
void SetResourceArn(const char *value)
Definition: DescribeProtectedResourceResult.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::DescribeProtectedResourceResult::WithLastBackupTime
DescribeProtectedResourceResult & WithLastBackupTime(Aws::Utils::DateTime &&value)
Definition: DescribeProtectedResourceResult.h:160
Aws::Backup::Model::DescribeProtectedResourceResult::DescribeProtectedResourceResult
DescribeProtectedResourceResult()
Aws::Backup::Model::DescribeProtectedResourceResult
Definition: DescribeProtectedResourceResult.h:29
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceArn
DescribeProtectedResourceResult & WithResourceArn(const char *value)
Definition: DescribeProtectedResourceResult.h:76
Aws::Backup::Model::DescribeProtectedResourceResult::WithResourceType
DescribeProtectedResourceResult & WithResourceType(const char *value)
Definition: DescribeProtectedResourceResult.h:119
Aws::Backup::Model::DescribeProtectedResourceResult::GetLastBackupTime
const Aws::Utils::DateTime & GetLastBackupTime() const
Definition: DescribeProtectedResourceResult.h:128