AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ARN.h
1
6 #pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11namespace Aws
12{
13 namespace Utils
14 {
23 class AWS_CORE_API ARN
24 {
25 public:
26 ARN(const Aws::String& arnString);
30 explicit operator bool() const { return m_valid; }
31
35 const Aws::String& GetARNString() const { return m_arnString; }
36
37 const Aws::String& GetPartition() const { return m_partition; }
38
39 const Aws::String& GetService() const { return m_service; }
40
41 const Aws::String& GetRegion() const { return m_region; }
42
43 const Aws::String& GetAccountId() const { return m_accountId; }
44
45 const Aws::String& GetResource() const { return m_resource; }
46
47 private:
48 Aws::String m_arnString;
49 Aws::String m_partition;
50 Aws::String m_service;
51 Aws::String m_region;
52 Aws::String m_accountId;
53 Aws::String m_resource;
54
55 bool m_valid;
56 };
57 }
58}
const Aws::String & GetPartition() const
Definition ARN.h:37
ARN(const Aws::String &arnString)
const Aws::String & GetRegion() const
Definition ARN.h:41
const Aws::String & GetARNString() const
Definition ARN.h:35
const Aws::String & GetResource() const
Definition ARN.h:45
const Aws::String & GetAccountId() const
Definition ARN.h:43
const Aws::String & GetService() const
Definition ARN.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97