|
|
|
@ -22,75 +22,75 @@ import io.entgra.device.mgt.core.device.mgt.extensions.logger.LogContext;
|
|
|
|
|
|
|
|
|
|
public class PolicyLogContext extends LogContext {
|
|
|
|
|
private final String policyName;
|
|
|
|
|
private final String payloadVersion;
|
|
|
|
|
private final String payload;
|
|
|
|
|
private final String tenantID;
|
|
|
|
|
private final String profileID;
|
|
|
|
|
private final String tenantDomain;
|
|
|
|
|
|
|
|
|
|
private PolicyLogContext(Builder builder) {
|
|
|
|
|
this.policyName = builder.policyName;
|
|
|
|
|
this.payloadVersion = builder.payloadVersion;
|
|
|
|
|
this.payload = builder.payload;
|
|
|
|
|
this.tenantID = builder.tenantID;
|
|
|
|
|
this.profileID = builder.profileID;
|
|
|
|
|
this.tenantDomain = builder.tenantDomain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPolicyName() {
|
|
|
|
|
return policyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPayloadVersion() {
|
|
|
|
|
return payloadVersion;
|
|
|
|
|
public String getPayload() {
|
|
|
|
|
return payload;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTenantID() {
|
|
|
|
|
return tenantID;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProfileID() {
|
|
|
|
|
return profileID;
|
|
|
|
|
public String getTenantDomain() {
|
|
|
|
|
return tenantDomain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Builder {
|
|
|
|
|
private String policyName;
|
|
|
|
|
private String payloadVersion;
|
|
|
|
|
private String payload;
|
|
|
|
|
private String tenantID;
|
|
|
|
|
private String profileID;
|
|
|
|
|
private String tenantDomain;
|
|
|
|
|
|
|
|
|
|
public Builder() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTenantID() {
|
|
|
|
|
return tenantID;
|
|
|
|
|
public String getPolicyName() {
|
|
|
|
|
return policyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setTenantID(String tenantID) {
|
|
|
|
|
this.tenantID = tenantID;
|
|
|
|
|
public Builder setPolicyName(String policyName) {
|
|
|
|
|
this.policyName = policyName;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProfileID() {
|
|
|
|
|
return profileID;
|
|
|
|
|
public String getPayload() {
|
|
|
|
|
return payload;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setProfileID(String profileID) {
|
|
|
|
|
this.profileID = profileID;
|
|
|
|
|
public Builder setPayload(String payload) {
|
|
|
|
|
this.payload = payload;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPolicyName() {
|
|
|
|
|
return policyName;
|
|
|
|
|
public String getTenantID() {
|
|
|
|
|
return tenantID;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setPolicyName(String policyName) {
|
|
|
|
|
this.policyName = policyName;
|
|
|
|
|
public Builder setTenantID(String tenantID) {
|
|
|
|
|
this.tenantID = tenantID;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPayloadVersion() {
|
|
|
|
|
return payloadVersion;
|
|
|
|
|
public String getTenantDomain() {
|
|
|
|
|
return tenantDomain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setPayloadVersion(String payloadVersion) {
|
|
|
|
|
this.payloadVersion = payloadVersion;
|
|
|
|
|
public Builder setTenantDomain(String tenantDomain) {
|
|
|
|
|
this.tenantDomain = tenantDomain;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|