com.tencentcloudapi.vpc.v20170312.models.CreateFlowLogRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
*
* http://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.tencentcloudapi.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateFlowLogRequest extends AbstractModel{
/**
* ID of the VPC instance
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* The name of the flow log instance.
*/
@SerializedName("FlowLogName")
@Expose
private String FlowLogName;
/**
* The type of resources to which the flow log belongs. Valid values: 'VPC', 'SUBNET' and 'NETWORKINTERFACE'.
*/
@SerializedName("ResourceType")
@Expose
private String ResourceType;
/**
* The unique ID of the resource.
*/
@SerializedName("ResourceId")
@Expose
private String ResourceId;
/**
* Type of the flow logs to be collected. Valid values: `ACCEPT`, `REJECT` and `ALL`.
*/
@SerializedName("TrafficType")
@Expose
private String TrafficType;
/**
* The storage ID of the flow log.
*/
@SerializedName("CloudLogId")
@Expose
private String CloudLogId;
/**
* The description of the flow log instance
*/
@SerializedName("FlowLogDescription")
@Expose
private String FlowLogDescription;
/**
* Bound tags, such as [{"Key": "city", "Value": "shanghai"}]
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Get ID of the VPC instance
* @return VpcId ID of the VPC instance
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set ID of the VPC instance
* @param VpcId ID of the VPC instance
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get The name of the flow log instance.
* @return FlowLogName The name of the flow log instance.
*/
public String getFlowLogName() {
return this.FlowLogName;
}
/**
* Set The name of the flow log instance.
* @param FlowLogName The name of the flow log instance.
*/
public void setFlowLogName(String FlowLogName) {
this.FlowLogName = FlowLogName;
}
/**
* Get The type of resources to which the flow log belongs. Valid values: 'VPC', 'SUBNET' and 'NETWORKINTERFACE'.
* @return ResourceType The type of resources to which the flow log belongs. Valid values: 'VPC', 'SUBNET' and 'NETWORKINTERFACE'.
*/
public String getResourceType() {
return this.ResourceType;
}
/**
* Set The type of resources to which the flow log belongs. Valid values: 'VPC', 'SUBNET' and 'NETWORKINTERFACE'.
* @param ResourceType The type of resources to which the flow log belongs. Valid values: 'VPC', 'SUBNET' and 'NETWORKINTERFACE'.
*/
public void setResourceType(String ResourceType) {
this.ResourceType = ResourceType;
}
/**
* Get The unique ID of the resource.
* @return ResourceId The unique ID of the resource.
*/
public String getResourceId() {
return this.ResourceId;
}
/**
* Set The unique ID of the resource.
* @param ResourceId The unique ID of the resource.
*/
public void setResourceId(String ResourceId) {
this.ResourceId = ResourceId;
}
/**
* Get Type of the flow logs to be collected. Valid values: `ACCEPT`, `REJECT` and `ALL`.
* @return TrafficType Type of the flow logs to be collected. Valid values: `ACCEPT`, `REJECT` and `ALL`.
*/
public String getTrafficType() {
return this.TrafficType;
}
/**
* Set Type of the flow logs to be collected. Valid values: `ACCEPT`, `REJECT` and `ALL`.
* @param TrafficType Type of the flow logs to be collected. Valid values: `ACCEPT`, `REJECT` and `ALL`.
*/
public void setTrafficType(String TrafficType) {
this.TrafficType = TrafficType;
}
/**
* Get The storage ID of the flow log.
* @return CloudLogId The storage ID of the flow log.
*/
public String getCloudLogId() {
return this.CloudLogId;
}
/**
* Set The storage ID of the flow log.
* @param CloudLogId The storage ID of the flow log.
*/
public void setCloudLogId(String CloudLogId) {
this.CloudLogId = CloudLogId;
}
/**
* Get The description of the flow log instance
* @return FlowLogDescription The description of the flow log instance
*/
public String getFlowLogDescription() {
return this.FlowLogDescription;
}
/**
* Set The description of the flow log instance
* @param FlowLogDescription The description of the flow log instance
*/
public void setFlowLogDescription(String FlowLogDescription) {
this.FlowLogDescription = FlowLogDescription;
}
/**
* Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}]
* @return Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}]
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}]
* @param Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}]
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
public CreateFlowLogRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public CreateFlowLogRequest(CreateFlowLogRequest source) {
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.FlowLogName != null) {
this.FlowLogName = new String(source.FlowLogName);
}
if (source.ResourceType != null) {
this.ResourceType = new String(source.ResourceType);
}
if (source.ResourceId != null) {
this.ResourceId = new String(source.ResourceId);
}
if (source.TrafficType != null) {
this.TrafficType = new String(source.TrafficType);
}
if (source.CloudLogId != null) {
this.CloudLogId = new String(source.CloudLogId);
}
if (source.FlowLogDescription != null) {
this.FlowLogDescription = new String(source.FlowLogDescription);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "FlowLogName", this.FlowLogName);
this.setParamSimple(map, prefix + "ResourceType", this.ResourceType);
this.setParamSimple(map, prefix + "ResourceId", this.ResourceId);
this.setParamSimple(map, prefix + "TrafficType", this.TrafficType);
this.setParamSimple(map, prefix + "CloudLogId", this.CloudLogId);
this.setParamSimple(map, prefix + "FlowLogDescription", this.FlowLogDescription);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy