/
DestinationAttributes.java
68 lines (60 loc) · 2.35 KB
/
DestinationAttributes.java
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
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.events.cloud.audit.v1;
import java.util.Map;
/**
* The destination of a network activity, such as accepting a TCP connection.
* In a multi hop network activity, the destination represents the receiver of
* the last hop. Only two fields are used in this message, Peer.port and
* Peer.ip. These fields are optionally populated by those services utilizing
* the IAM condition feature.
*/
public class DestinationAttributes {
private String ip;
private Map<String, String> labels;
private Long port;
private String principal;
private String regionCode;
/**
* The IP address of the peer.
*/
public String getIP() { return ip; }
public void setIP(String value) { this.ip = value; }
/**
* The labels associated with the peer.
*/
public Map<String, String> getLabels() { return labels; }
public void setLabels(Map<String, String> value) { this.labels = value; }
/**
* The network port of the peer.
*/
public Long getPort() { return port; }
public void setPort(Long value) { this.port = value; }
/**
* The identity of this peer. Similar to `Request.auth.principal`, but
* relative to the peer instead of the request. For example, the
* idenity associated with a load balancer that forwared the request.
*/
public String getPrincipal() { return principal; }
public void setPrincipal(String value) { this.principal = value; }
/**
* The CLDR country/region code associated with the above IP address.
* If the IP address is private, the `region_code` should reflect the
* physical location where this peer is running.
*/
public String getRegionCode() { return regionCode; }
public void setRegionCode(String value) { this.regionCode = value; }
}