1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2// Code generated. DO NOT EDIT.
3
4// Core Services API
5//
6// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
7// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
8// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API
9// to manage resources such as virtual cloud networks (VCNs), compute instances, and
10// block storage volumes.
11//
12
13package core
14
15import (
16	"github.com/oracle/oci-go-sdk/common"
17)
18
19// PortRange The representation of PortRange
20type PortRange struct {
21
22	// The maximum port number. Must not be lower than the minimum port number. To specify
23	// a single port number, set both the min and max to the same value.
24	Max *int `mandatory:"true" json:"max"`
25
26	// The minimum port number. Must not be greater than the maximum port number.
27	Min *int `mandatory:"true" json:"min"`
28}
29
30func (m PortRange) String() string {
31	return common.PointerString(m)
32}
33