-
Notifications
You must be signed in to change notification settings - Fork 346
Expand file tree
/
Copy pathAccessPointInfo.php
More file actions
121 lines (103 loc) · 2.87 KB
/
AccessPointInfo.php
File metadata and controls
121 lines (103 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
namespace OSS\Model;
/**
* Class AccessPointInfo
* @package OSS\Model
*
*/
class AccessPointInfo{
private $accessPointName;
private $bucket;
private $accountId;
private $networkOrigin;
private $vpcId;
private $accessPointArn;
private $creationDate;
private $alias;
private $status;
private $publicEndpoint;
private $internalEndpoint;
public function getAccessPointName(){
return $this->accessPointName;
}
public function getBucket(){
return $this->bucket;
}
public function getAccountId(){
return $this->accountId;
}
public function getNetworkOrigin(){
return $this->networkOrigin;
}
public function getVpcId(){
return $this->vpcId;
}
public function getAccessPointArn(){
return $this->accessPointArn;
}
public function getCreationDate() {
return $this->creationDate;
}
public function getAlias(){
return $this->alias;
}
public function getStatus(){
return $this->status;
}
public function getPublicEndpoint() {
return $this->publicEndpoint;
}
public function getInternalEndpoint() {
return $this->internalEndpoint;
}
/**
* Parse the xml into this object.
*/
public function parseFromXml($strXml)
{
$xml = simplexml_load_string($strXml);
$this->parseFromXmlObj($xml);
}
/**
* @param $xml \SimpleXMLElement
*/
public function parseFromXmlObj($xml)
{
if (isset($xml->AccessPointName)){
$this->accessPointName = strval($xml->AccessPointName);
}
if (isset($xml->Bucket)){
$this->bucket = strval($xml->Bucket);
}
if (isset($xml->AccountId)){
$this->accountId = strval($xml->AccountId);
}
if (isset($xml->NetworkOrigin)){
$this->networkOrigin = strval($xml->NetworkOrigin);
}
if (isset($xml->VpcConfiguration->VpcId)){
$this->vpcId = strval($xml->VpcConfiguration->VpcId);
}
if (isset($xml->AccessPointArn)){
$this->accessPointArn = strval($xml->AccessPointArn);
}
if (isset($xml->CreationDate)){
$this->creationDate = strval($xml->CreationDate);
}
if (isset($xml->CreationDate)){
$this->creationDate = strval($xml->CreationDate);
}
if (isset($xml->Alias)){
$this->alias = strval($xml->Alias);
}
if (isset($xml->Status)){
$this->status = strval($xml->Status);
}
if (isset($xml->Endpoints->PublicEndpoint)){
$this->publicEndpoint = strval($xml->Endpoints->PublicEndpoint);
}
if (isset($xml->Endpoints->InternalEndpoint)){
$this->internalEndpoint = strval($xml->Endpoints->InternalEndpoint);
}
}
}